mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
Fix test failure: /bin/sleep on Macos 11 (Monterey) does not accept the suffix s. (#1472)
This commit is contained in:
@@ -197,7 +197,7 @@ namespace GitHub.Runner.Common.Tests
|
|||||||
#if OS_WINDOWS
|
#if OS_WINDOWS
|
||||||
execTask = processInvoker.ExecuteAsync("", "cmd.exe", $"/c \"choice /T {SecondsToRun} /D y\"", null, tokenSource.Token);
|
execTask = processInvoker.ExecuteAsync("", "cmd.exe", $"/c \"choice /T {SecondsToRun} /D y\"", null, tokenSource.Token);
|
||||||
#else
|
#else
|
||||||
execTask = processInvoker.ExecuteAsync("", "bash", $"-c \"sleep {SecondsToRun}s\"", null, tokenSource.Token);
|
execTask = processInvoker.ExecuteAsync("", "bash", $"-c \"sleep {SecondsToRun}\"", null, tokenSource.Token);
|
||||||
#endif
|
#endif
|
||||||
await Task.Delay(500);
|
await Task.Delay(500);
|
||||||
tokenSource.Cancel();
|
tokenSource.Cancel();
|
||||||
|
|||||||
Reference in New Issue
Block a user