Skip to content

Commit 6bf0013

Browse files
committed
[PGPRO-5673] tests.backup.BackupTest.test_missing_replication_permission: fix test for 9.5
1 parent 873d594 commit 6bf0013

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/backup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3276,9 +3276,11 @@ def test_missing_replication_permission(self):
32763276
"\n Output: {0} \n CMD: {1}".format(
32773277
repr(self.output), self.cmd))
32783278
except ProbackupException as e:
3279-
self.assertIn(
3280-
"FATAL: must be superuser or replication role to start walsender",
3279+
# 9.5: ERROR: must be superuser or replication role to run a backup
3280+
# >=9.6: FATAL: must be superuser or replication role to start walsender
3281+
self.assertRegex(
32813282
e.message,
3283+
"ERROR: must be superuser or replication role to run a backup|FATAL: must be superuser or replication role to start walsender",
32823284
"\n Unexpected Error Message: {0}\n CMD: {1}".format(
32833285
repr(e.message), self.cmd))
32843286

0 commit comments

Comments
 (0)