File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -296,17 +296,13 @@ test {Migrate the last slot away from a node using valkey-cli} {
296296 set owner_id [$owner_r CLUSTER MYID]
297297
298298 # Wait until owner node knows the new node
299- wait_for_condition 1000 50 [list {
300- set nodes [get_cluster_nodes $owner_id ]
299+ wait_for_condition 1000 50 {
301300 set found 0
302- foreach n $nodes {
303- if {[dict get $n id] eq $newnode_id } {
304- set found 1
305- break
306- }
301+ foreach n [get_cluster_nodes $owner_id ] {
302+ if {[dict get $n id] eq $newnode_id } { set found 1; break }
307303 }
308304 $found
309- }] else {
305+ } else {
310306 fail " Owner node does not know the new node yet"
311307 }
312308
Original file line number Diff line number Diff line change @@ -50,17 +50,13 @@ test {Migrate the last slot away from a node using valkey-cli} {
5050 set owner_id [$owner_r CLUSTER MYID]
5151
5252 # Wait until owner node knows the new node
53- wait_for_condition 1000 50 [list {
54- set nodes [get_cluster_nodes $owner_id ]
53+ wait_for_condition 1000 50 {
5554 set found 0
56- foreach n $nodes {
57- if {[dict get $n id] eq $newnode_id } {
58- set found 1
59- break
60- }
55+ foreach n [get_cluster_nodes $owner_id ] {
56+ if {[dict get $n id] eq $newnode_id } { set found 1; break }
6157 }
6258 $found
63- }] else {
59+ } else {
6460 fail " Owner node does not know the new node yet"
6561 }
6662
@@ -114,4 +110,4 @@ test {Migrate the last slot away from a node using valkey-cli} {
114110 wait_for_cluster_propagation
115111 assert_match *master* [$owner_r role]
116112 }
117- }
113+ }
You can’t perform that action at this time.
0 commit comments