Skip to content

Commit

Permalink
reset_cluster before Half-finish importing
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Aggarwal <[email protected]>
  • Loading branch information
sarthakaggarwal97 committed Jan 9, 2025
1 parent e56d8f9 commit 40fb786
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/cluster/half-migrated-slot.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ test "Move key back" {
assert_equal "xyz" [$cluster get aga]
}

reset_cluster

test "Half-finish importing" {
# Now we half finish 'importing' node
assert_equal {OK} [$nodeto(link) cluster setslot 609 node $nodeto(id)]
assert_equal {OK} [$nodefrom(link) cluster setslot 609 node $nodeto(id)]
fix_cluster $nodefrom(addr)
assert_equal "xyz" [$cluster get aga]
}

Expand Down

0 comments on commit 40fb786

Please sign in to comment.