From 6c2cef768707fa662e5ce152c3ec556ef5a70794 Mon Sep 17 00:00:00 2001 From: John Sully Date: Sat, 8 Feb 2020 16:49:41 -0500 Subject: [PATCH] Addmissing test file Former-commit-id: fb2bdf7d05e27b15dcb53b09d6820416a99a3ba7 --- tests/unit/replication.tcl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/unit/replication.tcl diff --git a/tests/unit/replication.tcl b/tests/unit/replication.tcl new file mode 100644 index 000000000..ada6af1e5 --- /dev/null +++ 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 + } +}