From 71861a68170f55e54f0d38e49c666184cac2a2d0 Mon Sep 17 00:00:00 2001 From: Sarthak Aggarwal Date: Thu, 9 Jan 2025 10:31:26 -0800 Subject: [PATCH] reset_cluster before Half-finish importing Signed-off-by: Sarthak Aggarwal --- tests/unit/cluster/half-migrated-slot.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/cluster/half-migrated-slot.tcl b/tests/unit/cluster/half-migrated-slot.tcl index aa24a10709..4d657b894d 100644 --- a/tests/unit/cluster/half-migrated-slot.tcl +++ b/tests/unit/cluster/half-migrated-slot.tcl @@ -81,10 +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] }