Skip to content

Commit eea3988

Browse files
committed
set the time to wait for lock to longest expected runtime of fixture scripts
That way, we don't get timeouts unnecessarily.
1 parent 39046e9 commit eea3988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tools/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pub fn scripted_fixture_repo_read_only_with_args(
124124

125125
let _marker = git_lock::Marker::acquire_to_hold_resource(
126126
script_basename,
127-
git_lock::acquire::Fail::AfterDurationWithBackoff(Duration::from_secs(5)),
127+
git_lock::acquire::Fail::AfterDurationWithBackoff(Duration::from_secs(if cfg!(windows) { 3 * 60 } else { 30 })),
128128
None,
129129
)?;
130130
let failure_marker = script_result_directory.join("_invalid_state_due_to_script_failure_");

0 commit comments

Comments
 (0)