]> git.saurik.com Git - redis.git/blobdiff - tests/unit/other.tcl
SCRIPT command for introspection and control of the scripting environment.
[redis.git] / tests / unit / other.tcl
index 20cefc6a0131492ecc62eca47f6e5f66c30fb521..702c291f9a504e832b68ac50f3385e6afa9df021 100644 (file)
@@ -1,4 +1,11 @@
 start_server {tags {"other"}} {
+    if {$::force_failure} {
+        # This is used just for test suite development purposes.
+        test {Failing test} {
+            format err
+        } {ok}
+    }
+
     test {SAVE - make sure there are all the types as values} {
         # Wait for a background saving in progress to terminate
         waitForBgsave r
@@ -240,6 +247,7 @@ start_server {tags {"other"}} {
     } {0 0}
 
     test {Perform a final SAVE to leave a clean DB on disk} {
+        waitForBgsave r
         r save
     } {OK}
 }