]> git.saurik.com Git - redis.git/commitdiff
Less false positives in maxclients test, hopefully.
authorantirez <antirez@gmail.com>
Tue, 17 Apr 2012 08:04:42 +0000 (10:04 +0200)
committerantirez <antirez@gmail.com>
Tue, 17 Apr 2012 08:04:59 +0000 (10:04 +0200)
tests/unit/limits.tcl

index 9988983fad75e7f808663f64cc3b44259935d2f9..f622e1b91559150fde219f753d16a75d93aa8644 100644 (file)
@@ -2,9 +2,10 @@ start_server {tags {"limits"} overrides {maxclients 10}} {
     test {Check if maxclients works refusing connections} {
         set c 0
         catch {
-            while 1 {
+            while {$c < 50} {
                 incr c
                 redis_deferring_client
+                after 100
             }
         } e
         assert {$c > 8 && $c <= 10}