Skip to content

Commit a8ee334

Browse files
committed
[PBCKP-235] fix one test for <15.0
1 parent eaf3b14 commit a8ee334

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tests/backup.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3441,10 +3441,15 @@ def test_backup_atexit(self):
34413441
self.assertIn(
34423442
'WARNING: backup in progress, stop backup',
34433443
log_content)
3444-
3445-
self.assertIn(
3446-
'FROM pg_catalog.pg_backup_stop',
3447-
log_content)
3444+
3445+
if self.get_version(node) < 150000:
3446+
self.assertIn(
3447+
'FROM pg_catalog.pg_stop_backup',
3448+
log_content)
3449+
else:
3450+
self.assertIn(
3451+
'FROM pg_catalog.pg_backup_stop',
3452+
log_content)
34483453

34493454
self.assertIn(
34503455
'setting its status to ERROR',

0 commit comments

Comments
 (0)