Skip to content

Commit

Permalink
Fix verbose build error
Browse files Browse the repository at this point in the history
Signed-off-by: Madelyn Olson <[email protected]>
  • Loading branch information
madolson committed Feb 6, 2025
1 parent 35e54e1 commit 16c0af4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/info.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16c0af4

Please sign in to comment.