• Binbin's avatar
    Fix flaky PTTL time to live in milliseconds test on slow machines (#11651) · 9b20d598
    Binbin authored
    This test failed in FreeBSD:
    ```
    *** [err]: PTTL returns time to live in milliseconds in tests/unit/expire.tcl
    Expected 836 > 900 && 836 <= 1000 (context: type eval line 5 cmd {assert {$ttl > 900 && $ttl <= 1000}} proc ::test)
    ```
    
    On some slow machines, sometimes the test take close to 200ms
    to finish. We only set aside 100ms, so that caused the failure.
    Since the failure was around 800, change the condition to be >500.
    9b20d598
expire.tcl 25.9 KB