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 https://github.com/valkey-io/valkey/issues/2843

Signed-off-by: Roshan Khatri <rvkhatri@amazon.com>
This commit is contained in:
Roshan Khatri 2025-11-17 12:26:12 -08:00 committed by GitHub
parent aef56e52f5
commit 616fccb4c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ tags {"benchmark network external:skip logreqres:skip"} {
# Verify total duration was at least 2 seconds
set elapsed [expr {($end_time - $start_time)/1000.0}]
assert {$elapsed >= 2 && $elapsed <= 2.25}
assert {$elapsed >= 2}
# Check reported duration
lassign [regexp -inline {(\d+) requests completed in ([\d.]+) seconds} $output] -> requests duration