Skip to content

Commit fd45728

Browse files
committed
Increase timeout for msbuild processes and added better logging
1 parent d0c7d81 commit fd45728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/MSBuildProcessManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static Task<MSBuildResult> RunProcessAsync(
1717
TimeSpan? timeout = null,
1818
MSBuildProcessKind msBuildProcessKind = MSBuildProcessKind.Dotnet)
1919
{
20-
timeout = timeout ?? TimeSpan.FromSeconds(60);
20+
timeout = timeout ?? TimeSpan.FromSeconds(120);
2121

2222
var processStartInfo = new ProcessStartInfo()
2323
{
@@ -76,7 +76,7 @@ public static Task<MSBuildResult> RunProcessAsync(
7676

7777
// This is a timeout.
7878
process.Kill();
79-
throw new TimeoutException($"command '${process.StartInfo.FileName} {process.StartInfo.Arguments}' timed out after {timeout}.");
79+
throw new TimeoutException($"command '${process.StartInfo.FileName} {process.StartInfo.Arguments}' timed out after {timeout}. Output: {output.ToString()}");
8080
});
8181

8282
var waitTask = Task.Run(() =>

0 commit comments

Comments
 (0)