Skip to content

Commit

Permalink
Fix intermittent failure in unit tests
Browse files Browse the repository at this point in the history
testRetrieveAll in test_cliCmdRetrieveArtifacts.py was failing intermittently, any time that the zip index happened to be the second file in the directory listing.
  • Loading branch information
dhirving committed Dec 9, 2024
1 parent 6da1657 commit f41f5e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_cliCmdRetrieveArtifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))

Expand Down

0 comments on commit f41f5e8

Please sign in to comment.