summaryrefslogtreecommitdiff
path: root/tests/unit/introspection.tcl
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-02-12 13:27:24 +0100
committerantirez <antirez@gmail.com>2013-02-12 13:27:24 +0100
commitac8c89cb20203b9e0545f2306565efe6381546bb (patch)
tree4f000f76039c64bb7aeddfc54aaf3b3b4f068d04 /tests/unit/introspection.tcl
parent7f9bc42f1717ba2b6f8cabf2d196b0d906859dca (diff)
downloadredis-ac8c89cb20203b9e0545f2306565efe6381546bb.tar.gz
Test: avoid false positives in CLIENT SETNAME closed connection test.
Diffstat (limited to 'tests/unit/introspection.tcl')
-rw-r--r--tests/unit/introspection.tcl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/unit/introspection.tcl b/tests/unit/introspection.tcl
index a6c2130f5..54742bb02 100644
--- a/tests/unit/introspection.tcl
+++ b/tests/unit/introspection.tcl
@@ -50,6 +50,10 @@ start_server {tags {"introspection"}} {
assert_match {*foobar*} [r client list]
$rd close
# Now the client should no longer be listed
- string match {*foobar*} [r client list]
- } {0}
+ wait_for_condition 50 100 {
+ [string match {*foobar*} [r client list]] == 0
+ } else {
+ fail "Client still listed in CLIENT LIST after SETNAME."
+ }
+ }
}