From 16c0af419d99a0441dc573668b71e954583d66a1 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 6 Feb 2025 13:05:23 -0800 Subject: [PATCH] Fix verbose build error Signed-off-by: Madelyn Olson --- tests/unit/info.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/info.tcl b/tests/unit/info.tcl index e428d1451b..d748cbcaf0 100644 --- a/tests/unit/info.tcl +++ b/tests/unit/info.tcl @@ -335,12 +335,14 @@ start_server {tags {"info" "external:skip" "debug_defrag:skip"}} { test {stats: instantaneous metrics} { r config resetstat r config set hz 100 - after 2000 ;# Wait for at least 1600 cron ticks so that sample array is filled + after 2000 ;# Wait for at least 160 cron tick so that sample array is filled + set value [s instantaneous_eventloop_cycles_per_sec] if {$::verbose} { puts "instantaneous metrics instantaneous_eventloop_cycles_per_sec: $value" } assert_morethan $value 0 # Hz is configured to 100, so we expect a value of about 100, but in practice it will be lower # because of imprecision in kernel wakeups, but we also have some other wakeups like clients cron. + assert_morethan $value 50 assert_lessthan $value 150 set value [s instantaneous_eventloop_duration_usec] r config set hz 10