]> git.saurik.com Git - redis.git/blobdiff - tests/support/test.tcl
change ltrim tests to cover all min/max cases and add stronger stresser
[redis.git] / tests / support / test.tcl
index 4caa6ca79731ef97d626d4cde8025b757b37c0f6..988189bfa10887fbce8cbfe3fedf5290f1a75325 100644 (file)
@@ -26,6 +26,8 @@ proc assert_error {pattern code} {
 }
 
 proc assert_encoding {enc key} {
+    # swapped out value doesn't have encoding, so swap in first
+    r debug swapin $key
     assert_match "* encoding:$enc *" [r debug object $key]
 }