X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/da9c4cc1471f8575d1a4e62955c248e725efc750..9bd0e097aa19b697757cdb73dd447e2c6f4960c6:/tests/unit/obuf-limits.tcl diff --git a/tests/unit/obuf-limits.tcl b/tests/unit/obuf-limits.tcl index f591357b..e965e892 100644 --- a/tests/unit/obuf-limits.tcl +++ b/tests/unit/obuf-limits.tcl @@ -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}