Skip to content

Commit bc0ea49

Browse files
committed
[PBCKP-434] stabilize backup_test
there was some nose-to-nose timing, so it could sporadically fail. And in fact timeouts need no to be so large. Reduce them a bit.
1 parent 8952b84 commit bc0ea49

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/backup_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ def test_backup_with_least_privileges_role(self):
17531753
set_replication=True,
17541754
ptrack_enable=self.ptrack,
17551755
initdb_params=['--data-checksums'],
1756-
pg_options={'archive_timeout': '30s'})
1756+
pg_options={'archive_timeout': '10s'})
17571757

17581758
self.init_pb(backup_dir)
17591759
self.add_instance(backup_dir, 'node', node)
@@ -2080,14 +2080,14 @@ def test_backup_with_less_privileges_role(self):
20802080
ptrack_enable=self.ptrack,
20812081
initdb_params=['--data-checksums'],
20822082
pg_options={
2083-
'archive_timeout': '30s',
2083+
'archive_timeout': '10s',
20842084
'archive_mode': 'always',
2085-
'checkpoint_timeout': '60s',
2085+
'checkpoint_timeout': '30s',
20862086
'wal_level': 'logical'})
20872087

20882088
self.init_pb(backup_dir)
20892089
self.add_instance(backup_dir, 'node', node)
2090-
self.set_config(backup_dir, 'node', options=['--archive-timeout=60s'])
2090+
self.set_config(backup_dir, 'node', options=['--archive-timeout=30s'])
20912091
self.set_archiving(backup_dir, 'node', node)
20922092
node.slow_start()
20932093

@@ -2186,7 +2186,7 @@ def test_backup_with_less_privileges_role(self):
21862186
self.add_instance(backup_dir, 'replica', replica)
21872187
self.set_config(
21882188
backup_dir, 'replica',
2189-
options=['--archive-timeout=120s', '--log-level-console=LOG'])
2189+
options=['--archive-timeout=60s', '--log-level-console=LOG'])
21902190
self.set_archiving(backup_dir, 'replica', replica, replica=True)
21912191
self.set_auto_conf(replica, {'hot_standby': 'on'})
21922192

@@ -2218,7 +2218,7 @@ def test_backup_with_less_privileges_role(self):
22182218
self.switch_wal_segment(node)
22192219
self.backup_node(
22202220
backup_dir, 'replica', replica, backup_type='page',
2221-
datname='backupdb', options=['-U', 'backup', '--archive-timeout=30s'])
2221+
datname='backupdb', options=['-U', 'backup', '--archive-timeout=20s'])
22222222

22232223
self.backup_node(
22242224
backup_dir, 'replica', replica, backup_type='page',

0 commit comments

Comments
 (0)