mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
Fix race condition in tests/unit/auth.tcl (#12444)
Changing the masterauth while turning into a replica is racy. Turn into replica after changing the masterauth instead.
This commit is contained in:
parent
6abb3c4038
commit
b653c759cd
1 changed files with 1 additions and 1 deletions
|
|
@ -70,8 +70,8 @@ start_server {tags {"auth_binary_password external:skip"}} {
|
|||
|
||||
# Configure the replica with masterauth
|
||||
set loglines [count_log_lines 0]
|
||||
$slave slaveof $master_host $master_port
|
||||
$slave config set masterauth "abc"
|
||||
$slave slaveof $master_host $master_port
|
||||
|
||||
# Verify replica is not able to sync with master
|
||||
wait_for_log_messages 0 {"*Unable to AUTH to MASTER*"} $loglines 1000 10
|
||||
|
|
|
|||
Loading…
Reference in a new issue