You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wait for the matching realtime event when creating an index in tests #14433
api / realtimeFixes and upgrades for the Appwrite Realtime API.product / databasesFixes and upgrades for the Appwrite Database.sdk / cliFixes and upgrades for the Appwrite CLI.
Goal: Stop RealtimeConsoleClientTest::testIndexesCollectionAPI (and its tables twin) from flaking when a late attribute available update lands on the realtime socket ahead of the index create event (seen on the 2.5.0 prep PR #14422 as Failed asserting that an array contains 'databases.….collections.….indexes.*.create').
tests/e2e/Services/Realtime/RealtimeConsoleClientTest.php: in testIndexesCollectionAPI and testIndexesTablesAPI, the index create and index available reads use receiveUntilEvent() instead of a raw $client->receive(), skipping unrelated frames until the matching event arrives. Assertions on the matched event are unchanged.
Same approach as 217bb21, which fixed the race for the index delete tests.
api / realtimeFixes and upgrades for the Appwrite Realtime API.product / databasesFixes and upgrades for the Appwrite Database.sdk / cliFixes and upgrades for the Appwrite CLI.
Activity
ChiragAgg5k commentedon Oct 14, 2026
Released in Appwrite 2.5.0 (includes #14432).