summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-05-25 15:20:59 +0200
committerantirez <antirez@gmail.com>2012-05-25 16:25:07 +0200
commit473f3090f2574e8a2f5db5f18ab7387040829108 (patch)
tree019511cc8df6668e6f6a41d8c199b3d86cd4743e
parent69396249e5877ff4e7fcb6ab121a0a1de055200f (diff)
downloadredis-473f3090f2574e8a2f5db5f18ab7387040829108.tar.gz
Tests modified to account for INFO fields renaming.
Commit 33e1db36fa3948c8b9baa3991fd40e7f6b31fb9e modified the name of a few INFO fields. This commit changes the Redis test to account for this changes.
-rw-r--r--tests/support/util.tcl4
-rw-r--r--tests/unit/aofrw.tcl6
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/support/util.tcl b/tests/support/util.tcl
index 0131c4118..a2a9f8513 100644
--- a/tests/support/util.tcl
+++ b/tests/support/util.tcl
@@ -55,7 +55,7 @@ proc status {r property} {
proc waitForBgsave r {
while 1 {
- if {[status r bgsave_in_progress] eq 1} {
+ if {[status r rdb_bgsave_in_progress] eq 1} {
if {$::verbose} {
puts -nonewline "\nWaiting for background save to finish... "
flush stdout
@@ -69,7 +69,7 @@ proc waitForBgsave r {
proc waitForBgrewriteaof r {
while 1 {
- if {[status r bgrewriteaof_in_progress] eq 1} {
+ if {[status r aof_rewrite_in_progress] eq 1} {
if {$::verbose} {
puts -nonewline "\nWaiting for background AOF rewrite to finish... "
flush stdout
diff --git a/tests/unit/aofrw.tcl b/tests/unit/aofrw.tcl
index 8b09d1995..e651694fe 100644
--- a/tests/unit/aofrw.tcl
+++ b/tests/unit/aofrw.tcl
@@ -127,8 +127,8 @@ start_server {tags {"aofrw"}} {
r info persistence
set res [r exec]
assert_match {*scheduled*} [lindex $res 1]
- assert_match {*bgrewriteaof_scheduled:1*} [lindex $res 2]
- while {[string match {*bgrewriteaof_scheduled:1*} [r info persistence]]} {
+ assert_match {*aof_rewrite_scheduled:1*} [lindex $res 2]
+ while {[string match {*aof_rewrite_scheduled:1*} [r info persistence]]} {
after 100
}
}
@@ -141,7 +141,7 @@ start_server {tags {"aofrw"}} {
r exec
} e
assert_match {*ERR*already*} $e
- while {[string match {*bgrewriteaof_scheduled:1*} [r info persistence]]} {
+ while {[string match {*aof_rewrite_scheduled:1*} [r info persistence]]} {
after 100
}
}