From 0b74a85678f96be8980de3dbdf4316137587b4b9 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 12 Mar 2013 19:55:33 +0100 Subject: [PATCH] Test: check that Redis starts empty without an RDB file. --- tests/integration/rdb.tcl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/integration/rdb.tcl b/tests/integration/rdb.tcl index 85c5db9f5..3a21c143c 100644 --- a/tests/integration/rdb.tcl +++ b/tests/integration/rdb.tcl @@ -23,3 +23,10 @@ start_server [list overrides [list "dir" $server_path "dbfilename" "encodings.rd } } +set server_path [tmpdir "server.rdb-startup-test"] + +start_server [list overrides [list "dir" $server_path]] { + test {Server started empty with non-existing RDB file} { + r debug digest + } {0000000000000000000000000000000000000000} +}