Skip to content

Commit

Permalink
Fix race condition in priority sync behave tests (patroni#3263)
Browse files Browse the repository at this point in the history
don't try patching /config key before leader managed to create it.
  • Loading branch information
CyberDem0n authored Jan 31, 2025
1 parent 6caa2fa commit 34b2a77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions features/priority_sync.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34b2a77

Please sign in to comment.