]> git.saurik.com Git - redis.git/blobdiff - tests/unit/limits.tcl
Less false positives in maxclients test, hopefully.
[redis.git] / 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}