• Binbin's avatar
    Fix and increase tollerance of event loop test, add verbose logs (#12385) · d56a7d9b
    Binbin authored
    The test fails on freebsd CI:
    ```
    *** [err]: stats: eventloop metrics in tests/unit/info.tcl
    Expected '31777' to be less than '16183' (context: type eval line 17 cmd
    {assert_lessthan $el_sum2 [expr $el_sum1+10000] } proc ::test)
    ```
    
    The test added in #11963, fails on freebsd CI which is slow,
    increase tollerance and also add some verbose logs, now we can
    see these logs in verbose mode (for better views):
    ```
    eventloop metrics cycle1: 12, cycle2: 15
    eventloop metrics el_sum1: 315, el_sum2: 411
    eventloop metrics cmd_sum1: 126, cmd_sum2: 137
    [ok]: stats: eventloop metrics (111 ms)
    instantaneous metrics instantaneous_eventloop_cycles_per_sec: 8
    instantaneous metrics instantaneous_eventloop_duration_usec: 55
    [ok]: stats: instantaneous metrics (1603 ms)
    [ok]: stats: debug metrics (112 ms)
    ```
    d56a7d9b
info.tcl 15 KB