Skip to content

Commit 3109634

Browse files
committed
[PBCKP-325] change test_issue_231 to check backup id are different
1 parent 0f7e01b commit 3109634

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/backup_test.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2790,16 +2790,10 @@ def test_issue_231(self):
27902790

27912791
datadir = os.path.join(node.data_dir, '123')
27922792

2793-
try:
2794-
self.backup_node(
2795-
backup_dir, 'node', node, data_dir='{0}'.format(datadir))
2796-
except:
2797-
pass
2798-
2799-
out = self.backup_node(backup_dir, 'node', node, options=['--stream'], return_id=False)
2793+
pb1 = self.backup_node(backup_dir, 'node', node, data_dir='{0}'.format(datadir))
2794+
pb2 = self.backup_node(backup_dir, 'node', node, options=['--stream'])
28002795

2801-
# it is a bit racy
2802-
self.assertIn("WARNING: Cannot create directory", out)
2796+
self.assertNotEqual(pb1, pb2)
28032797

28042798
def test_incr_backup_filenode_map(self):
28052799
"""

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