fix(regTests): can't execute command while loading on snapshots (#2110)

This commit is contained in:
Kostas Kyrimis 2023-11-02 12:17:08 +02:00 committed by GitHub
parent 1491bf4cfe
commit d08d7f13b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))