Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ac2da1e

Browse files
committed
[Issue #231] fix tests.backup.BackupTest.test_issue_231
1 parent ba2a35b commit ac2da1e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/backup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2917,13 +2917,16 @@ def test_issue_231(self):
29172917
self.add_instance(backup_dir, 'node', node)
29182918
node.slow_start()
29192919

2920+
datadir = os.path.join(node.data_dir, '123')
2921+
29202922
try:
29212923
self.backup_node(
2922-
backup_dir, 'node', node, options=['--streamblablah', '-j2'])
2924+
backup_dir, 'node', node,
2925+
data_dir='{0}'.format(datadir), return_id=False)
29232926
except:
29242927
pass
29252928

2926-
self.backup_node(backup_dir, 'node', node, options=['--stream', '-j2'])
2929+
self.backup_node(backup_dir, 'node', node, options=['--stream'])
29272930

29282931
# Clean after yourself
29292932
self.del_test_dir(module_name, fname)

0 commit comments

Comments
 (0)