From 58f104e2eebd076a94bb1eeb9064ec8da2f14410 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 18 Mar 2014 15:06:52 +0100 Subject: [PATCH] Sentinel test: foreach_instance_id implements 'break'. --- tests/sentinel.tcl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/sentinel.tcl b/tests/sentinel.tcl index 4c0a718c9..bb05103f0 100644 --- a/tests/sentinel.tcl +++ b/tests/sentinel.tcl @@ -275,6 +275,8 @@ proc foreach_instance_id {instances idvar code} { error $result $::errorInfo $::errorCode } elseif {$errcode == 4} { continue + } elseif {$errcode == 3} { + break } elseif {$errcode != 0} { return -code $errcode $result }