• Oran Agra's avatar
    fix flaky latency test (#11636) · 60f7111b
    Oran Agra authored
    Fix a flaky test that probably fails on overload timing issues.
    
    This unit starts with
    ```
        # Set a threshold high enough to avoid spurious latency events.
        r config set latency-monitor-threshold 200
    ```
    
    but later the test measuring expire event changes the threshold.
    this fix is to revert it to 200 after that test.
    
    Got this error (ARM+TLS)
    ```
    *** [err]: LATENCY RESET is able to reset events in tests/unit/latency-monitor.tcl
    Expected [r latency latest] eq {} (context: type eval line 3 cmd {assert {[r latency latest] eq {}}} proc ::test)
    ```
    60f7111b
latency-monitor.tcl 5.06 KB