mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix(regTests): can't execute command while loading on snapshots (#2110)
This commit is contained in:
parent
1491bf4cfe
commit
d08d7f13b4
1 changed files with 2 additions and 0 deletions
|
@ -140,11 +140,13 @@ class TestDflyAutoLoadSnapshot(SnapshotTestBase):
|
||||||
df_args["nodf_snapshot_format"] = None
|
df_args["nodf_snapshot_format"] = None
|
||||||
with df_local_factory.create(**df_args) as df_server:
|
with df_local_factory.create(**df_args) as df_server:
|
||||||
async with df_server.client() as client:
|
async with df_server.client() as client:
|
||||||
|
await wait_available_async(client)
|
||||||
await client.set("TEST", hash(dbfilename))
|
await client.set("TEST", hash(dbfilename))
|
||||||
await client.execute_command("SAVE " + save_type)
|
await client.execute_command("SAVE " + save_type)
|
||||||
|
|
||||||
with df_local_factory.create(**df_args) as df_server:
|
with df_local_factory.create(**df_args) as df_server:
|
||||||
async with df_server.client() as client:
|
async with df_server.client() as client:
|
||||||
|
await wait_available_async(client)
|
||||||
response = await client.get("TEST")
|
response = await client.get("TEST")
|
||||||
assert response.decode("utf-8") == str(hash(dbfilename))
|
assert response.decode("utf-8") == str(hash(dbfilename))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue