Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/dragonfly/cluster_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,12 @@ async def test_cluster_slot_ownership_changes(df_factory: DflyInstanceFactory):
)

# node0 should have removed "KEY1" as it no longer owns it
assert await c_nodes[0].execute_command("DBSIZE") == 1
# deleting non owned keys is background operation therefore we add timeout to this check
@assert_eventually(times=2)
async def check_dbsize():
assert await c_nodes[0].execute_command("DBSIZE") == 1

await check_dbsize()
# node0 should still own "KEY0" though
assert (await c_nodes[0].get("KEY0")) == "value"
# node1 should still have "KEY2"
Expand Down
Loading