Unverified Commit b653c759 authored by Diego Lopez Recas's avatar Diego Lopez Recas Committed by GitHub
Browse files

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.
parent 6abb3c40
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment