mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +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:
@@ -3,6 +3,8 @@ Feature: synchronous replicas priority
|
|||||||
|
|
||||||
Scenario: check replica with sync_priority=0 does not become a synchronous replica
|
Scenario: check replica with sync_priority=0 does not become a synchronous replica
|
||||||
Given I start postgres-0
|
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}
|
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
|
Then I receive a response code 200
|
||||||
When I configure and start postgres-1 with a tag sync_priority 0
|
When I configure and start postgres-1 with a tag sync_priority 0
|
||||||
|
|||||||
Reference in New Issue
Block a user