1 start_server
{tags
{"repl"}} {
3 test
{First server should have role slave
after SLAVEOF
} {
4 r
-1 slaveof
[srv
0 host
] [srv
0 port
]
9 test
{BRPOPLPUSH replication
, when blocking against empty
list} {
10 set rd
[redis_deferring_client
]
14 assert_equal
[r debug digest
] [r
-1 debug digest
]
17 test
{BRPOPLPUSH replication
, list exists
} {
18 set rd
[redis_deferring_client
]
24 assert_equal
[r debug digest
] [r
-1 debug digest
]
29 start_server
{tags
{"repl"}} {
33 test
{Second server should have role master at first
} {
37 test
{SLAVEOF should start with link status
"down"} {
38 r slaveof
[srv
-1 host
] [srv
-1 port
]
42 test
{The role should immediately be changed to
"slave"} {
47 test
{Sync should have transferred keys from master
} {
51 test
{The link status should be up
} {
55 test
{SET on the master should immediately propagate
} {