From 3079e52002f185db88b0c6a8e8c4c623a5287d19 Mon Sep 17 00:00:00 2001 From: Logan Bussell Date: Mon, 31 Oct 2022 07:10:33 -0700 Subject: [PATCH] [release/7.0.1xx] Increase dotnet-watch source-build smoke test timeout (#14842) * Up timeout for dotnet-watch smoke test * Add more descriptive timeout message --- .../Microsoft.DotNet.SourceBuild.SmokeTests/DotNetWatchTests.cs | 2 +- .../Microsoft.DotNet.SourceBuild.SmokeTests/ExecuteHelper.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SourceBuild/tarball/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/DotNetWatchTests.cs b/src/SourceBuild/tarball/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/DotNetWatchTests.cs index 46013bbc7..57b4e40b5 100644 --- a/src/SourceBuild/tarball/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/DotNetWatchTests.cs +++ b/src/SourceBuild/tarball/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/DotNetWatchTests.cs @@ -24,7 +24,7 @@ public class DotNetWatchTests : SmokeTests workingDirectory: projectDirectory, additionalProcessConfigCallback: processConfigCallback, expectedExitCode: null, // The exit code does not reflect whether or not dotnet watch is working properly - millisecondTimeout: 30000); + millisecondTimeout: 60000); Assert.True(outputChanged); diff --git a/src/SourceBuild/tarball/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/ExecuteHelper.cs b/src/SourceBuild/tarball/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/ExecuteHelper.cs index 62e1eb594..dbaaa8a80 100644 --- a/src/SourceBuild/tarball/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/ExecuteHelper.cs +++ b/src/SourceBuild/tarball/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/ExecuteHelper.cs @@ -70,7 +70,7 @@ internal static class ExecuteHelper if (!process.HasExited) { - outputHelper.WriteLine($"Killing: {fileName} {args}"); + outputHelper.WriteLine($"Process did not exit. Killing {fileName} {args} after waiting {millisecondTimeout} milliseconds."); process.Kill(true); process.WaitForExit(); }