From 52e7192e4aeaddea17b593f97a5bcc962e5b2b58 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 11 Sep 2018 10:57:50 +0200 Subject: Slave removal: remove slave from top-level tests descriptions. --- tests/unit/maxmemory.tcl | 4 ++-- tests/unit/pendingquerybuf.tcl | 2 +- tests/unit/scripting.tcl | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'tests') diff --git a/tests/unit/maxmemory.tcl b/tests/unit/maxmemory.tcl index f6d596ca2..1def57af5 100644 --- a/tests/unit/maxmemory.tcl +++ b/tests/unit/maxmemory.tcl @@ -163,7 +163,7 @@ proc test_slave_buffers {test_name cmd_count payload_len limit_memory pipeline} # make sure master doesn't disconnect slave because of timeout $master config set repl-timeout 300 ;# 5 minutes $master config set maxmemory-policy allkeys-random - $master config set client-output-buffer-limit "slave 100000000 100000000 300" + $master config set client-output-buffer-limit "replica 100000000 100000000 300" $master config set repl-backlog-size [expr {10*1024}] $slave slaveof $master_host $master_port @@ -238,5 +238,5 @@ test_slave_buffers {slave buffer are counted correctly} 1000000 10 0 1 # test that slave buffer don't induce eviction # test again with fewer (and bigger) commands without pipeline, but with eviction -test_slave_buffers "slave buffer don't induce eviction" 100000 100 1 0 +test_slave_buffers "replica buffer don't induce eviction" 100000 100 1 0 diff --git a/tests/unit/pendingquerybuf.tcl b/tests/unit/pendingquerybuf.tcl index caa940d8e..bee85db36 100644 --- a/tests/unit/pendingquerybuf.tcl +++ b/tests/unit/pendingquerybuf.tcl @@ -29,7 +29,7 @@ start_server {} { set m_usedmemory [info_memory $master used_memory] set s_usedmemory [info_memory $slave used_memory] if { $s_usedmemory > $m_usedmemory + 10*1024*1024 } { - fail "the used_memory of slave is too larger than master.Master:$m_usedmemory Slave:$s_usedmemory" + fail "the used_memory of replica is much larger than master. Master:$m_usedmemory Replica:$s_usedmemory" } } }} diff --git a/tests/unit/scripting.tcl b/tests/unit/scripting.tcl index b0591adfa..b3e1c48e6 100644 --- a/tests/unit/scripting.tcl +++ b/tests/unit/scripting.tcl @@ -542,7 +542,7 @@ foreach cmdrepl {0 1} { r debug lua-always-replicate-commands 1 } - test "Before the slave connects we issue two EVAL commands $rt" { + test "Before the replica connects we issue two EVAL commands $rt" { # One with an error, but still executing a command. # SHA is: 67164fc43fa971f76fd1aaeeaf60c1c178d25876 catch { @@ -553,13 +553,13 @@ foreach cmdrepl {0 1} { r eval {return redis.call('incr',KEYS[1])} 1 x } {2} - test "Connect a slave to the master instance $rt" { + test "Connect a replica to the master instance $rt" { r -1 slaveof [srv 0 host] [srv 0 port] wait_for_condition 50 100 { [s -1 role] eq {slave} && [string match {*master_link_status:up*} [r -1 info replication]] } else { - fail "Can't turn the instance into a slave" + fail "Can't turn the instance into a replica" } } @@ -592,7 +592,7 @@ foreach cmdrepl {0 1} { wait_for_condition 50 100 { [r -1 lrange a 0 -1] eq [r lrange a 0 -1] } else { - fail "Expected list 'a' in slave and master to be the same, but they are respectively '[r -1 lrange a 0 -1]' and '[r lrange a 0 -1]'" + fail "Expected list 'a' in replica and master to be the same, but they are respectively '[r -1 lrange a 0 -1]' and '[r lrange a 0 -1]'" } set res } {a 1} @@ -627,7 +627,7 @@ foreach cmdrepl {0 1} { wait_for_condition 50 100 { [r -1 debug digest] eq [r debug digest] } else { - fail "Master-Slave desync after Lua script using SELECT." + fail "Master-Replica desync after Lua script using SELECT." } } } @@ -636,13 +636,13 @@ foreach cmdrepl {0 1} { start_server {tags {"scripting repl"}} { start_server {overrides {appendonly yes aof-use-rdb-preamble no}} { - test "Connect a slave to the master instance" { + test "Connect a replica to the master instance" { r -1 slaveof [srv 0 host] [srv 0 port] wait_for_condition 50 100 { [s -1 role] eq {slave} && [string match {*master_link_status:up*} [r -1 info replication]] } else { - fail "Can't turn the instance into a slave" + fail "Can't turn the instance into a replica" } } @@ -696,7 +696,7 @@ start_server {tags {"scripting repl"}} { wait_for_condition 50 100 { [r -1 mget a b c d] eq {1 {} {} 4} } else { - fail "Only a and c should be replicated to slave" + fail "Only a and c should be replicated to replica" } # Master should have everything right now @@ -735,7 +735,7 @@ start_server {tags {"scripting repl"}} { wait_for_condition 50 100 { [r get time] eq [r -1 get time] } else { - fail "Time key does not match between master and slave" + fail "Time key does not match between master and replica" } } } -- cgit v1.2.1