Skip to content

Commit 616fccb

Browse files
authored
Fix the failing warmup and duration are cumulative (#2854)
We need to verify total duration was at least 2 seconds, elapsed time can be quite variable to check upper-bound Fixes #2843 Signed-off-by: Roshan Khatri <[email protected]>
1 parent aef56e5 commit 616fccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/valkey-benchmark.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ tags {"benchmark network external:skip logreqres:skip"} {
217217

218218
# Verify total duration was at least 2 seconds
219219
set elapsed [expr {($end_time - $start_time)/1000.0}]
220-
assert {$elapsed >= 2 && $elapsed <= 2.25}
220+
assert {$elapsed >= 2}
221221

222222
# Check reported duration
223223
lassign [regexp -inline {(\d+) requests completed in ([\d.]+) seconds} $output] -> requests duration

0 commit comments

Comments
 (0)