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

Appearance settings

Commit ed897d4

Browse filesBrowse files
committed
[Issue #310] fix tests.replica.ReplicaTest.test_parent_choosing
1 parent bd284a7 commit ed897d4
Copy full SHA for ed897d4

File tree

1 file changed

+3
-17
lines changed
Filter options

1 file changed

+3
-17
lines changed

‎tests/replica.py

Copy file name to clipboardExpand all lines: tests/replica.py
+3-17Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,23 +1660,9 @@ def test_parent_choosing(self):
16601660

16611661
# failing, because without archving, it is impossible to
16621662
# take multi-timeline backup.
1663-
try:
1664-
self.backup_node(
1665-
backup_dir, 'replica', replica,
1666-
backup_type='delta', options=['--stream'])
1667-
# we should die here because exception is what we expect to happen
1668-
self.assertEqual(
1669-
1, 0,
1670-
"Expecting Error because of timeline switch "
1671-
"\n Output: {0} \n CMD: {1}".format(
1672-
repr(self.output), self.cmd))
1673-
except ProbackupException as e:
1674-
self.assertTrue(
1675-
'WARNING: Cannot find valid backup on previous timelines, '
1676-
'WAL archive is not available' in e.message and
1677-
'ERROR: Create new full backup before an incremental one' in e.message,
1678-
"\n Unexpected Error Message: {0}\n CMD: {1}".format(
1679-
repr(e.message), self.cmd))
1663+
self.backup_node(
1664+
backup_dir, 'replica', replica,
1665+
backup_type='delta', options=['--stream'])
16801666

16811667
# Clean after yourself
16821668
self.del_test_dir(module_name, fname)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.