mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Don't write leader optime into DCS if it didn't changed (#319)
This commit is contained in:
committed by
GitHub
parent
10c7fa41f3
commit
5265e71fc2
@@ -103,7 +103,7 @@ class TestConsul(unittest.TestCase):
|
||||
|
||||
@patch.object(consul.Consul.KV, 'put', Mock(side_effect=ConsulException))
|
||||
def test_write_leader_optime(self):
|
||||
self.c.write_leader_optime('')
|
||||
self.c.write_leader_optime('1')
|
||||
|
||||
def test_update_leader(self):
|
||||
self.c.update_leader()
|
||||
|
||||
Reference in New Issue
Block a user