Browse Source

minor fix: fix order issue in test

backport of 10368f9c2c9508e71a583cb583f8f8bc154cb29d
Thomas Waldmann 4 years ago
parent
commit
a90412271f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/borg/testsuite/archiver.py

+ 1 - 1
src/borg/testsuite/archiver.py

@@ -464,7 +464,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
         archive_list = self.cmd('list', '--json-lines', self.repository_location + '::test')
         paths = [json.loads(line)['path'] for line in archive_list.split('\n') if line]
         # we have all fs items exactly once!
-        assert paths == ['input', 'input/a', 'input/a/hardlink', 'input/b', 'input/b/hardlink']
+        assert sorted(paths) == ['input', 'input/a', 'input/a/hardlink', 'input/b', 'input/b/hardlink']
 
     def test_init_parent_dirs(self):
         parent_path = os.path.join(self.tmpdir, 'parent1', 'parent2')