mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-01-27 10:20:10 +00:00
Fix race condition in priority sync behave tests (#3263)
don't try patching /config key before leader managed to create it.
This commit is contained in:
committed by
GitHub
parent
6caa2fa99c
commit
34b2a77294
@@ -3,6 +3,8 @@ Feature: synchronous replicas priority
|
||||
|
||||
Scenario: check replica with sync_priority=0 does not become a synchronous replica
|
||||
Given I start postgres-0
|
||||
Then postgres-0 is a leader after 10 seconds
|
||||
And there is a non empty initialize key in DCS after 15 seconds
|
||||
When I issue a PATCH request to http://127.0.0.1:8008/config with {"ttl": 20, "synchronous_mode": true}
|
||||
Then I receive a response code 200
|
||||
When I configure and start postgres-1 with a tag sync_priority 0
|
||||
|
||||
Reference in New Issue
Block a user