Skip to content

Commit 1c77b72

Browse files
author
avandras
committed
Adjust unit tests for showing latest_end_lsn
1 parent 9afa0d5 commit 1c77b72

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def execute(self, sql, *params):
177177
elif sql.startswith('WITH slots AS (SELECT slot_name, active'):
178178
self.results = [(False, True)] if self.rowcount == 1 else []
179179
elif sql.startswith('SELECT CASE WHEN pg_catalog.pg_is_in_recovery()'):
180-
self.results = [(1, 2, 1, 0, False, 1, 1, 1, None, None, 'streaming', '',
180+
self.results = [(1, 2, 1, 0, False, 1, 1, 1, 4, None, None, 'streaming', '',
181181
[{"slot_name": "ls", "confirmed_flush_lsn": 12345, "restart_lsn": 12344}],
182182
'on', 'n1', None)]
183183
elif sql.startswith('SELECT pg_catalog.pg_is_in_recovery()'):

tests/test_postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def test_promote(self, mock_popen):
461461
self.assertFalse(self.p.promote(0, task))
462462

463463
def test_timeline_wal_position(self):
464-
self.assertEqual(self.p.timeline_wal_position(), (1, 2, 1, 1, 1))
464+
self.assertEqual(self.p.timeline_wal_position(), (1, 2, 1, 1, 1, 4))
465465
Thread(target=self.p.timeline_wal_position).start()
466466

467467
@patch.object(PostmasterProcess, 'from_pidfile')

0 commit comments

Comments
 (0)