From d08d7f13b450be2048d59d5e0af9f4554978b235 Mon Sep 17 00:00:00 2001 From: Kostas Kyrimis Date: Thu, 2 Nov 2023 12:17:08 +0200 Subject: [PATCH] fix(regTests): can't execute command while loading on snapshots (#2110) --- tests/dragonfly/snapshot_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/dragonfly/snapshot_test.py b/tests/dragonfly/snapshot_test.py index e626e6f23..87ea293c2 100644 --- a/tests/dragonfly/snapshot_test.py +++ b/tests/dragonfly/snapshot_test.py @@ -140,11 +140,13 @@ class TestDflyAutoLoadSnapshot(SnapshotTestBase): df_args["nodf_snapshot_format"] = None with df_local_factory.create(**df_args) as df_server: async with df_server.client() as client: + await wait_available_async(client) await client.set("TEST", hash(dbfilename)) await client.execute_command("SAVE " + save_type) with df_local_factory.create(**df_args) as df_server: async with df_server.client() as client: + await wait_available_async(client) response = await client.get("TEST") assert response.decode("utf-8") == str(hash(dbfilename))