Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6bf0013

Browse files
committed
[PGPRO-5673] tests.backup.BackupTest.test_missing_replication_permission: fix test for 9.5
1 parent873d594 commit6bf0013

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
exceptProbackupExceptionase:
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)

[8]ページ先頭

©2009-2025 Movatter.jp