diff options
Diffstat (limited to 'examples/redis-unstable/tests/integration/convert-ziplist-hash-on-load.tcl')
| -rw-r--r-- | examples/redis-unstable/tests/integration/convert-ziplist-hash-on-load.tcl | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/examples/redis-unstable/tests/integration/convert-ziplist-hash-on-load.tcl b/examples/redis-unstable/tests/integration/convert-ziplist-hash-on-load.tcl deleted file mode 100644 index c8265b2..0000000 --- a/examples/redis-unstable/tests/integration/convert-ziplist-hash-on-load.tcl +++ /dev/null | |||
| @@ -1,28 +0,0 @@ | |||
| 1 | tags {"external:skip"} { | ||
| 2 | |||
| 3 | # Copy RDB with ziplist encoded hash to server path | ||
| 4 | set server_path [tmpdir "server.convert-ziplist-hash-on-load"] | ||
| 5 | |||
| 6 | exec cp -f tests/assets/hash-ziplist.rdb $server_path | ||
| 7 | start_server [list overrides [list "dir" $server_path "dbfilename" "hash-ziplist.rdb"]] { | ||
| 8 | test "RDB load ziplist hash: converts to listpack when RDB loading" { | ||
| 9 | r select 0 | ||
| 10 | |||
| 11 | assert_encoding listpack hash | ||
| 12 | assert_equal 2 [r hlen hash] | ||
| 13 | assert_match {v1 v2} [r hmget hash f1 f2] | ||
| 14 | } | ||
| 15 | } | ||
| 16 | |||
| 17 | exec cp -f tests/assets/hash-ziplist.rdb $server_path | ||
| 18 | start_server [list overrides [list "dir" $server_path "dbfilename" "hash-ziplist.rdb" "hash-max-ziplist-entries" 1]] { | ||
| 19 | test "RDB load ziplist hash: converts to hash table when hash-max-ziplist-entries is exceeded" { | ||
| 20 | r select 0 | ||
| 21 | |||
| 22 | assert_encoding hashtable hash | ||
| 23 | assert_equal 2 [r hlen hash] | ||
| 24 | assert_match {v1 v2} [r hmget hash f1 f2] | ||
| 25 | } | ||
| 26 | } | ||
| 27 | |||
| 28 | } | ||
