Make it possible to schedule failover in less then 10 seconds

But only when API request was posted to the leader
This commit is contained in:
Alexander Kukushkin
2016-04-13 13:32:39 +02:00
parent 94331fde6d
commit b4e86f0809
3 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ Scenario: check the failover via the API
And replication works from postgres1 to postgres0 after 15 seconds
Scenario: check the scheduled failover
Given I issue a scheduled failover at http://127.0.0.1:8009 from postgres1 to postgres0 in 10 seconds
Given I issue a scheduled failover at http://127.0.0.1:8009 from postgres1 to postgres0 in 1 seconds
Then I receive a response code 200
And postgres0 is a leader after 20 seconds
And postgres0 role is the primary after 5 seconds