X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/0f9997845af236097c8802771cca3cff84c4e77b..0bd6d68e34bc41cd80cd7fc44aab9cf3884de8dc:/tests/integration/convert-zipmap-hash-on-load.tcl diff --git a/tests/integration/convert-zipmap-hash-on-load.tcl b/tests/integration/convert-zipmap-hash-on-load.tcl index 75a65d3e..cf3577f2 100644 --- a/tests/integration/convert-zipmap-hash-on-load.tcl +++ b/tests/integration/convert-zipmap-hash-on-load.tcl @@ -1,8 +1,7 @@ -set server_path [tmpdir "server.convert-zipmap-hash-on-load"] - # Copy RDB with zipmap encoded hash to server path -exec cp tests/assets/hash-zipmap.rdb $server_path +set server_path [tmpdir "server.convert-zipmap-hash-on-load"] +exec cp -f tests/assets/hash-zipmap.rdb $server_path start_server [list overrides [list "dir" $server_path "dbfilename" "hash-zipmap.rdb"]] { test "RDB load zipmap hash: converts to ziplist" { r select 0 @@ -13,6 +12,7 @@ start_server [list overrides [list "dir" $server_path "dbfilename" "hash-zipmap. } } +exec cp -f tests/assets/hash-zipmap.rdb $server_path start_server [list overrides [list "dir" $server_path "dbfilename" "hash-zipmap.rdb" "hash-max-ziplist-entries" 1]] { test "RDB load zipmap hash: converts to hash table when hash-max-ziplist-entries is exceeded" { r select 0 @@ -23,6 +23,7 @@ start_server [list overrides [list "dir" $server_path "dbfilename" "hash-zipmap. } } +exec cp -f tests/assets/hash-zipmap.rdb $server_path start_server [list overrides [list "dir" $server_path "dbfilename" "hash-zipmap.rdb" "hash-max-ziplist-value" 1]] { test "RDB load zipmap hash: converts to hash table when hash-max-ziplist-value is exceeded" { r select 0