• Binbin's avatar
    Fix replication on expired key test timing issue, give it more chances (#11548) · 06b577aa
    Binbin authored
    In replica, the key expired before master's `INCR` was arrived, so INCR
    creates a new key in the replica and the test failed.
    ```
    *** [err]: Replication of an expired key does not delete the expired key in tests/integration/replication-4.tcl
    Expected '0' to be equal to '1' (context: type eval line 13 cmd {assert_equal 0 [$slave exists k]} proc ::test)
    ```
    
    This test is very likely to do a false positive if the `wait_for_ofs_sync`
    takes longer than the expiration time, so give it a few more chances.
    
    The test was introduced in #9572.
    06b577aa
replication-4.tcl 9.62 KB