diff --git a/src/Test/L0/ProcessInvokerL0.cs b/src/Test/L0/ProcessInvokerL0.cs index a8398fd881..73c857aadd 100644 --- a/src/Test/L0/ProcessInvokerL0.cs +++ b/src/Test/L0/ProcessInvokerL0.cs @@ -59,7 +59,7 @@ public async Task TestCancel() Task execTask; if (TestUtil.IsWindows()) { - execTask = processInvoker.ExecuteAsync("", "cmd", $"/c \"ping 127.0.0.1 -n {SecondsToRun} > nul\"", null, tokenSource.Token); + execTask = processInvoker.ExecuteAsync("", "cmd", $"/c \"timeout {SecondsToRun} > nul\"", null, tokenSource.Token); } else {