8000 tests: another fix for test_archive_pg_receivexlog_partial_handling · postgrespro/pg_probackup@8291582 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8291582

Browse files
committed
tests: another fix for test_archive_pg_receivexlog_partial_handling
1 parent 4bcdda4 commit 8291582

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/archive.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,8 +2032,10 @@ def test_archive_pg_receivexlog_partial_handling(self):
20322032
replica.slow_start(replica=True)
20332033

20342034
if self.get_version(replica) < 100000:
2035+
app_name = 'pg_receivexlog'
20352036
pg_receivexlog_path = self.get_bin_path('pg_receivexlog')
20362037
else:
2038+
app_name = 'pg_receivewal'
20372039
pg_receivexlog_path = self.get_bin_path('pg_receivewal')
20382040

20392041
cmdline = [
@@ -2079,6 +2081,7 @@ def test_archive_pg_receivexlog_partial_handling(self):
20792081
node_restored.data_dir, options=['--recovery-target=latest', '--recovery-target-action=promote'])
20802082
self.set_auto_conf(node_restored, {'port': node_restored.port})
20812083
self.set_auto_conf(node_restored, {'hot_standby': 'off'})
2084+
self.set_auto_conf(node_restored, {'synchronous_standby_names': app_name})
20822085

20832086
# it will set node_restored as warm standby.
20842087
# with open(os.path.join(node_restored.data_dir, "standby.signal"), 'w') as f:

0 commit comments

Comments
 (0)
0