X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/57997664eaba82ad263c61b9cdbe7dd26ec8d08d..0a0f83ab2c02ebf1a9029a473e23ef72d037cac0:/tests/unit/other.tcl?ds=sidebyside diff --git a/tests/unit/other.tcl b/tests/unit/other.tcl index c142ba7f..98a532c9 100644 --- a/tests/unit/other.tcl +++ b/tests/unit/other.tcl @@ -46,7 +46,7 @@ start_server {tags {"other"}} { set _ $err } {*invalid*} - tags {consistency} { + tags {consistency nodiskstore} { if {![catch {package require sha1}]} { test {Check consistency of different data types after a reload} { r flushdb @@ -102,12 +102,19 @@ start_server {tags {"other"}} { r flushdb r set x 10 r expire x 1000 - r save - r debug reload + if {$::diskstore} { + r debug flushcache + } else { + r save + r debug reload + } set ttl [r ttl x] set e1 [expr {$ttl > 900 && $ttl <= 1000}] - r bgrewriteaof - waitForBgrewriteaof r + if {!$::diskstore} { + r bgrewriteaof + waitForBgrewriteaof r + r debug loadaof + } set ttl [r ttl x] set e2 [expr {$ttl > 900 && $ttl <= 1000}] list $e1 $e2