Don't write leader optime into DCS if it didn't changed (#319)

This commit is contained in:
Alexander Kukushkin
2016-09-21 14:22:22 +02:00
committed by GitHub
parent 10c7fa41f3
commit 5265e71fc2
5 changed files with 27 additions and 21 deletions
+1 -1
View File
@@ -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()