diff --git a/tests/unit/replication.tcl b/tests/unit/replication.tcl index e69de29bb..ada6af1e5 100644 --- a/tests/unit/replication.tcl +++ b/tests/unit/replication.tcl @@ -0,0 +1,12 @@ + +start_server {tags {"repl"}} { + test "incr of expired key on replica doesn't cause a crash" { + r debug force-master yes + r set testkey 1 + r pexpire testkey 1 + after 500 + r incr testkey + r incr testkey + r debug force-master no + } +}