From f30858f09eb12819cf85b297226839eec23052a0 Mon Sep 17 00:00:00 2001 From: kodumbeats Date: Mon, 25 Oct 2021 20:14:12 -0400 Subject: [PATCH] Ensure attributes are available before testing indexes --- tests/e2e/Services/Database/DatabaseCustomServerTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/Services/Database/DatabaseCustomServerTest.php b/tests/e2e/Services/Database/DatabaseCustomServerTest.php index a09009143c..3b08fd3e5a 100644 --- a/tests/e2e/Services/Database/DatabaseCustomServerTest.php +++ b/tests/e2e/Services/Database/DatabaseCustomServerTest.php @@ -703,6 +703,10 @@ class DatabaseCustomServerTest extends Scope $this->assertCount(64, $collection['body']['attributes']); $this->assertCount(0, $collection['body']['indexes']); + foreach ($collection['body']['attributes'] as $attribute) { + $this->assertEquals('available', $attribute['status']); + } + // testing for indexLimit = 64 // MariaDB, MySQL, and MongoDB create 3 indexes per new collection // Add up to the limit, then check if the next index throws IndexLimitException