Fix race in CONFIG REWRITE sanity (#8536)

server may still be LOADING the RDB when receiving the ping
This commit is contained in:
guybe7 2021-02-23 19:28:03 +01:00 committed by GitHub
parent dd885780d6
commit f745c0181a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ start_server {tags {"introspection"}} {
# Rewrite entire configuration, restart and confirm the
# server is able to parse it and start.
assert_equal [r debug config-rewrite-force-all] "OK"
restart_server 0 false false
restart_server 0 true false
assert_equal [r ping] "PONG"
# Verify no changes were introduced