diff --git a/src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs b/src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs index 26fe0ca5151..e7ced25962d 100644 --- a/src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs +++ b/src/fsharp/FSharp.DependencyManager.Nuget/FSharp.DependencyManager.Utilities.fs @@ -192,7 +192,7 @@ module internal Utilities = // Timed out resolving throw a diagnostic. raise (new TimeoutException(SR.timedoutResolvingPackages(psi.FileName, psi.Arguments))) else - () + p.WaitForExit() #if DEBUG File.WriteAllLines(Path.Combine(workingDir, "StandardOutput.txt"), outputList) diff --git a/tests/FSharp.Test.Utilities/TestFramework.fs b/tests/FSharp.Test.Utilities/TestFramework.fs index 18af5370bc9..a27a140c981 100644 --- a/tests/FSharp.Test.Utilities/TestFramework.fs +++ b/tests/FSharp.Test.Utilities/TestFramework.fs @@ -53,7 +53,7 @@ module Commands = // Timed out resolving throw a diagnostic. raise (new TimeoutException(sprintf "Timeout executing command '%s' '%s'" (psi.FileName) (psi.Arguments))) else - () + p.WaitForExit() #if DEBUG File.WriteAllLines(Path.Combine(workingDir, "StandardOutput.txt"), outputList) File.WriteAllLines(Path.Combine(workingDir, "StandardError.txt"), errorsList)