Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a4308f0

Browse files
committed
Fix tests.backup.BackupTest.test_missing_replication_permission_1: make it compatible with PGPROBACKUP_SSH_REMOTE=ON on PG14 (follow bd81f7f)
1 parent 3cd69fb commit a4308f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/backup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3234,9 +3234,11 @@ def test_missing_replication_permission_1(self):
32343234
# 'WARNING: could not connect to database backupdb: FATAL: must be superuser or replication role to start walsender'
32353235
# Messages for >=14
32363236
# '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'
3237+
# 'WARNING: could not connect to database backupdb: connection to server at "localhost" (127.0.0.1), port 29732 failed: FATAL: must be superuser or replication role to start walsender'
32373238
self.assertRegex(
32383239
output,
3239-
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')
3240+
r'WARNING: could not connect to database backupdb: (connection to server (on socket "/tmp/.s.PGSQL.\d+"|at "localhost" \(127.0.0.1\), port \d+) failed: ){0,1}'
3241+
'FATAL: must be superuser or replication role to start walsender')
32403242

32413243
# Clean after yourself
32423244
self.del_test_dir(module_name, fname)

0 commit comments

Comments
 (0)