Update timeline on standby cluster (#1332)

Fixes https://github.com/zalando/patroni/issues/1031
This commit is contained in:
Alexander Kukushkin
2019-12-20 12:56:00 +01:00
committed by GitHub
parent a675fa18dc
commit 16d1ffdde7
6 changed files with 38 additions and 19 deletions
+1 -1
View File
@@ -331,7 +331,7 @@ class TestPostgresql(BaseTestPostgresql):
self.assertTrue(self.p.promote(0))
def test_timeline_wal_position(self):
self.assertEqual(self.p.timeline_wal_position(), (1, 2))
self.assertEqual(self.p.timeline_wal_position(), (1, 2, 1))
Thread(target=self.p.timeline_wal_position).start()
@patch.object(PostmasterProcess, 'from_pidfile')