Skip to content

Commit ed897d4

Browse files
committed
[Issue #310] fix tests.replica.ReplicaTest.test_parent_choosing
1 parent bd284a7 commit ed897d4

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

tests/replica.py

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy