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:
Diego Lopez Recas 2023-08-01 17:03:33 +02:00 committed by GitHub
parent 6abb3c4038
commit b653c759cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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