Skip to content

Commit

Permalink
Fix test failure: /bin/sleep on Macos 11 (Monterey) does not accept t…
Browse files Browse the repository at this point in the history
…he suffix s. (#1472)
  • Loading branch information
hkratz authored Dec 21, 2021
1 parent 55ed60b commit 45decac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Test/L0/ProcessInvokerL0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public async Task TestCancel()
#if OS_WINDOWS
execTask = processInvoker.ExecuteAsync("", "cmd.exe", $"/c \"choice /T {SecondsToRun} /D y\"", null, tokenSource.Token);
#else
execTask = processInvoker.ExecuteAsync("", "bash", $"-c \"sleep {SecondsToRun}s\"", null, tokenSource.Token);
execTask = processInvoker.ExecuteAsync("", "bash", $"-c \"sleep {SecondsToRun}\"", null, tokenSource.Token);
#endif
await Task.Delay(500);
tokenSource.Cancel();
Expand Down

0 comments on commit 45decac

Please # to comment.