From 226647908e6db5c9201c7bc0ce0fabf0a3236f23 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 8 Jul 2011 12:20:30 +0200 Subject: [PATCH] Test for regression about: Redis should not try to convert DEL into EXPIREAT for EXPIRE -1 --- tests/integration/aof.tcl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/integration/aof.tcl b/tests/integration/aof.tcl index 954edc2c4..3c77cb966 100644 --- a/tests/integration/aof.tcl +++ b/tests/integration/aof.tcl @@ -119,4 +119,11 @@ tags {"aof"} { assert_equal 0 [$client llen list] } } + + start_server {overrides {appendonly {yes} appendfilename {appendonly.aof}}} { + test {Redis should not try to convert DEL into EXPIREAT for EXPIRE -1} { + r set x 10 + r expire x -1 + } + } }