提交 473f3090 编写于 作者: A antirez

Tests modified to account for INFO fields renaming.

Commit 33e1db36 modified the name of a
few INFO fields. This commit changes the Redis test to account for this
changes.
上级 69396249
...@@ -55,7 +55,7 @@ proc status {r property} { ...@@ -55,7 +55,7 @@ proc status {r property} {
proc waitForBgsave r { proc waitForBgsave r {
while 1 { while 1 {
if {[status r bgsave_in_progress] eq 1} { if {[status r rdb_bgsave_in_progress] eq 1} {
if {$::verbose} { if {$::verbose} {
puts -nonewline "\nWaiting for background save to finish... " puts -nonewline "\nWaiting for background save to finish... "
flush stdout flush stdout
...@@ -69,7 +69,7 @@ proc waitForBgsave r { ...@@ -69,7 +69,7 @@ proc waitForBgsave r {
proc waitForBgrewriteaof r { proc waitForBgrewriteaof r {
while 1 { while 1 {
if {[status r bgrewriteaof_in_progress] eq 1} { if {[status r aof_rewrite_in_progress] eq 1} {
if {$::verbose} { if {$::verbose} {
puts -nonewline "\nWaiting for background AOF rewrite to finish... " puts -nonewline "\nWaiting for background AOF rewrite to finish... "
flush stdout flush stdout
......
...@@ -127,8 +127,8 @@ start_server {tags {"aofrw"}} { ...@@ -127,8 +127,8 @@ start_server {tags {"aofrw"}} {
r info persistence r info persistence
set res [r exec] set res [r exec]
assert_match {*scheduled*} [lindex $res 1] assert_match {*scheduled*} [lindex $res 1]
assert_match {*bgrewriteaof_scheduled:1*} [lindex $res 2] assert_match {*aof_rewrite_scheduled:1*} [lindex $res 2]
while {[string match {*bgrewriteaof_scheduled:1*} [r info persistence]]} { while {[string match {*aof_rewrite_scheduled:1*} [r info persistence]]} {
after 100 after 100
} }
} }
...@@ -141,7 +141,7 @@ start_server {tags {"aofrw"}} { ...@@ -141,7 +141,7 @@ start_server {tags {"aofrw"}} {
r exec r exec
} e } e
assert_match {*ERR*already*} $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 after 100
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册