From 10368f9c2c9508e71a583cb583f8f8bc154cb29d Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 5 Feb 2021 23:38:54 +0100 Subject: [PATCH] minor fix: fix order issue in test --- src/borg/testsuite/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/testsuite/archiver.py b/src/borg/testsuite/archiver.py index 511082286..a0493bb87 100644 --- a/src/borg/testsuite/archiver.py +++ b/src/borg/testsuite/archiver.py @@ -463,7 +463,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')