Skip to content

Commit

Permalink
Merge pull request #762 from linsword13/unit-test
Browse files Browse the repository at this point in the history
Fix up a unit-test that may fail when run in parallel
  • Loading branch information
linsword13 authored Nov 11, 2024
2 parents 7fa8a8b + 71e5f18 commit 748c227
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ramble/ramble/test/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,12 @@ def test_search_if_default_fails(

def test_ensure_one_stage_entry(self, mock_stage_archive):
archive = mock_stage_archive()
# If this is the only/first test that runs against the `self.stage_name`, then
# a stage lock file will be present under the `stage_path` and cause the
# `_ensure_one_stage_entry` to fail. Set lock=False to prevent creating the lock,
# as the focus of this test is to verify the fetch behavior.
with InputStage(
archive.url, name=self.stage_name, path=archive.stage_path, keep=False
archive.url, name=self.stage_name, path=archive.stage_path, keep=False, lock=False
) as stage:
stage.fetch()
stage_path = stage.path
Expand Down

0 comments on commit 748c227

Please sign in to comment.