From f41f5e86b4eda3a0d3bb3e21d017302b84f5e1f9 Mon Sep 17 00:00:00 2001 From: "David H. Irving" Date: Mon, 9 Dec 2024 15:51:38 -0700 Subject: [PATCH] Fix intermittent failure in unit tests testRetrieveAll in test_cliCmdRetrieveArtifacts.py was failing intermittently, any time that the zip index happened to be the second file in the directory listing. --- tests/test_cliCmdRetrieveArtifacts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_cliCmdRetrieveArtifacts.py b/tests/test_cliCmdRetrieveArtifacts.py index 28690816dd..bc6a208a87 100644 --- a/tests/test_cliCmdRetrieveArtifacts.py +++ b/tests/test_cliCmdRetrieveArtifacts.py @@ -75,6 +75,7 @@ def testRetrieveAll(self): self.assertTrue(result.stdout.endswith(": 6\n"), f"Expected 6 got: {result.stdout}") artifacts = self.find_files(destdir) + artifacts.sort() self.assertEqual(len(artifacts), 7, f"Expected 7 artifacts including index: {artifacts}") self.assertIn(f"{destdir}{prefix}", str(artifacts[1]))