Skip to content

Commit 8a85666

Browse files
updated attribute limit tests
1 parent 28a979e commit 8a85666

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/e2e/Adapter/Scopes/AttributeTests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ public function testWidthLimit(): void
803803
$collection = $database->createCollection('width_limit');
804804

805805
$init = $database->getAdapter()->getAttributeWidth($collection);
806-
$this->assertEquals(1067, $init);
806+
$this->assertEquals(3109, $init);
807807

808808
$attribute = new Document([
809809
'$id' => ID::custom('varchar_100'),
@@ -957,7 +957,7 @@ public function testExceptionWidthLimit(): void
957957
$attributes[] = new Document([
958958
'$id' => ID::custom('varchar_16000'),
959959
'type' => Database::VAR_STRING,
960-
'size' => 16000,
960+
'size' => 15500,
961961
'required' => true,
962962
'default' => null,
963963
'signed' => true,

tests/e2e/Adapter/Scopes/CollectionTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ public function testRowSizeToLarge(): void
607607
$collection_1 = $database->createCollection('row_size_1');
608608
$collection_2 = $database->createCollection('row_size_2');
609609

610-
$this->assertEquals(true, $database->createAttribute($collection_1->getId(), 'attr_1', Database::VAR_STRING, 16000, true));
610+
$this->assertEquals(true, $database->createAttribute($collection_1->getId(), 'attr_1', Database::VAR_STRING, 15500, true));
611611

612612
try {
613613
$database->createAttribute($collection_1->getId(), 'attr_2', Database::VAR_STRING, Database::LENGTH_KEY, true);

tests/e2e/Adapter/Scopes/GeneralTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function testGetAttributeLimit(): void
295295
}
296296
public function testGetIndexLimit(): void
297297
{
298-
$this->assertEquals(58, $this->getDatabase()->getLimitForIndexes());
298+
$this->assertEquals(56, $this->getDatabase()->getLimitForIndexes());
299299
}
300300

301301
public function testGetId(): void

0 commit comments

Comments
 (0)