diff options
Diffstat (limited to 'tests/integration/rdb.tcl')
-rw-r--r-- | tests/integration/rdb.tcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/integration/rdb.tcl b/tests/integration/rdb.tcl index f95b3eaa4..25e7936fe 100644 --- a/tests/integration/rdb.tcl +++ b/tests/integration/rdb.tcl @@ -355,4 +355,13 @@ start_server {overrides {save ""}} { } } ;# system_name +exec cp -f tests/assets/scriptbackup.rdb $server_path +start_server [list overrides [list "dir" $server_path "dbfilename" "scriptbackup.rdb" "appendonly" "no"]] { + # the script is: "return redis.call('set', 'foo', 'bar')"" + # its sha1 is: a0c38691e9fffe4563723c32ba77a34398e090e6 + test {script won't load anymore if it's in rdb} { + assert_equal [r script exists a0c38691e9fffe4563723c32ba77a34398e090e6] 0 + } +} + } ;# tags |