Skip to content

Commit 6ca984b

Browse files
committed
tests: fix for "replica" module
1 parent 81339c7 commit 6ca984b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/replica.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,10 @@ def test_archive_replica_null_offset(self):
743743
self.set_replica(master, replica, synchronous=True)
744744
self.set_archiving(backup_dir, 'replica', replica, replica=True)
745745

746+
# freeze bgwriter to get rid of RUNNING XACTS records
747+
bgwriter_pid = master.auxiliary_pids[ProcessType.BackgroundWriter][0]
748+
gdb_checkpointer = self.gdb_attach(bgwriter_pid)
749+
746750
copy_tree(
747751
os.path.join(backup_dir, 'wal', 'master'),
748752
os.path.join(backup_dir, 'wal', 'replica'))
@@ -757,7 +761,7 @@ def test_archive_replica_null_offset(self):
757761
backup_dir, 'replica', replica,
758762
options=[
759763
'--archive-timeout=30',
760-
'--log-level-console=verbose',
764+
'--log-level-console=LOG',
761765
'--no-validate'],
762766
return_id=False)
763767

0 commit comments

Comments
 (0)