]> git.saurik.com Git - redis.git/commitdiff
Fix test that sometimes returned the swapped object instead of encoding
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Tue, 7 Sep 2010 09:49:33 +0000 (11:49 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Tue, 7 Sep 2010 09:49:33 +0000 (11:49 +0200)
tests/unit/type/hash.tcl

index ef49a27d892566558d0d6a918330084a70c30b75..74f6d058e141a06196eec9cb8e3ce85a196de580 100644 (file)
@@ -15,8 +15,8 @@ start_server {tags {"hash"}} {
     } {8}
 
     test {Is the small hash encoded with a zipmap?} {
-        r debug object smallhash
-    } {*zipmap*}
+        assert_encoding zipmap smallhash
+    }
 
     test {HSET/HLEN - Big hash creation} {
         array set bighash {}