Skip to content

Commit 58d2df5

Browse files
committed
fix postgres
1 parent 2de806b commit 58d2df5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/e2e/Adapter/Base.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ public function testCreateCollectionWithSchemaIndexes(): void
170170
new Document([
171171
'$id' => ID::custom('idx_username_created_at'),
172172
'type' => Database::INDEX_KEY,
173-
'attributes' => ['username', '$createdAt'],
173+
'attributes' => ['username'],
174174
'lengths' => [99], // Length not equal to attributes length
175175
'orders' => [Database::ORDER_DESC],
176176
]),
177177
];
178178

179179
$collection = $database->createCollection(
180-
__FUNCTION__,
180+
'collection98',
181181
$attributes,
182182
$indexes,
183183
permissions: [
@@ -193,7 +193,6 @@ public function testCreateCollectionWithSchemaIndexes(): void
193193
$this->assertEquals($collection->getAttribute('indexes')[1]['lengths'][0], null);
194194

195195
$this->assertEquals($collection->getAttribute('indexes')[2]['attributes'][0], 'username');
196-
$this->assertEquals($collection->getAttribute('indexes')[2]['attributes'][1], '$createdAt');
197196
$this->assertEquals($collection->getAttribute('indexes')[2]['lengths'][0], 99);
198197
$this->assertEquals($collection->getAttribute('indexes')[2]['orders'][0], Database::ORDER_DESC);
199198
}

0 commit comments

Comments
 (0)