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

Commitb0182bd

Browse files
committed
fix test_pgpro560_control_file_loss
1 parent6a9850b commitb0182bd

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

‎tests/pgpro560_test.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,9 @@ def test_pgpro560_control_file_loss(self):
3131
# Not delete this file permanently
3232
os.rename(file,os.path.join(node.base_dir,'data','global','pg_control_copy'))
3333

34-
try:
34+
withself.assertRaisesRegex(ProbackupException,
35+
r'ERROR: Getting system identifier:.*pg_control'):
3536
self.backup_node(backup_dir,'node',node,options=['--stream'])
36-
# we should die here because exception is what we expect to happen
37-
self.assertEqual(
38-
1,0,
39-
"Expecting Error because pg_control was deleted.\n "
40-
"Output: {0}\n CMD: {1}".format(repr(self.output),self.cmd))
41-
exceptProbackupExceptionase:
42-
self.assertTrue(
43-
'ERROR: Could not open file'ine.messageand
44-
'pg_control'ine.message,
45-
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
46-
repr(e.message),self.cmd))
4737

4838
# Return this file to avoid Postger fail
4939
os.rename(os.path.join(node.base_dir,'data','global','pg_control_copy'),file)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp