Skip to content

Commit 873d594

Browse files
committed
[PGPRO-5673] tests.backup.BackupTest.test_missing_replication_permission_1: fix test for changed 14s output
1 parent e0bda4d commit 873d594

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/backup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3404,10 +3404,14 @@ def test_missing_replication_permission_1(self):
34043404
self.assertIn(
34053405
'WARNING: Valid full backup on current timeline 2 is not found, trying to look up on previous timelines',
34063406
output)
3407-
3408-
self.assertIn(
3409-
'WARNING: could not connect to database backupdb: FATAL: must be superuser or replication role to start walsender',
3410-
output)
3407+
3408+
# Messages before 14
3409+
# 'WARNING: could not connect to database backupdb: FATAL: must be superuser or replication role to start walsender'
3410+
# Messages for >=14
3411+
# 'WARNING: could not connect to database backupdb: connection to server on socket "/tmp/.s.PGSQL.30983" failed: FATAL: must be superuser or replication role to start walsender'
3412+
self.assertRegex(
3413+
output,
3414+
r'WARNING: could not connect to database backupdb: (connection to server on socket "/tmp/.s.PGSQL.\d+" failed: ){0,1}FATAL: must be superuser or replication role to start walsender')
34113415

34123416
# Clean after yourself
34133417
self.del_test_dir(module_name, fname)

0 commit comments

Comments
 (0)