]> git.saurik.com Git - redis.git/blobdiff - tests/unit/obuf-limits.tcl
Sentinel: reply -IDONTKNOW to get-master-addr-by-name on lack of info.
[redis.git] / tests / unit / obuf-limits.tcl
index f591357bb88502bd02fecd98e054423237cd2d14..e965e892dca2bba7ee86be8c4813aedf5d242528 100644 (file)
@@ -15,7 +15,7 @@ start_server {tags {"obuf-limits"}} {
             if {![regexp {omem=([0-9]+)} $c - omem]} break
             if {$omem > 200000} break
         }
-        assert {$omem >= 100000 && $omem < 200000}
+        assert {$omem >= 99000 && $omem < 200000}
         $rd1 close
     }
 
@@ -38,7 +38,7 @@ start_server {tags {"obuf-limits"}} {
             if {$omem > 100000} {
                 if {$start_time == 0} {set start_time [clock seconds]}
                 set time_elapsed [expr {[clock seconds]-$start_time}]
-                if {[clock seconds]-$start_time >= 5} break
+                if {$time_elapsed >= 5} break
             }
         }
         assert {$omem >= 100000 && $time_elapsed >= 5 && $time_elapsed <= 10}
@@ -64,7 +64,7 @@ start_server {tags {"obuf-limits"}} {
             if {$omem > 100000} {
                 if {$start_time == 0} {set start_time [clock seconds]}
                 set time_elapsed [expr {[clock seconds]-$start_time}]
-                if {[clock seconds]-$start_time >= 10} break
+                if {$time_elapsed >= 10} break
             }
         }
         assert {$omem >= 100000 && $time_elapsed < 6}