Skip to content

Commit

Permalink
Allows to override shutdown timeout (#3466)
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Jareš <me@jakubjares.com>
  • Loading branch information
Evangelink and nohwnd authored Mar 14, 2022
1 parent bad853c commit 1f88b0a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ public virtual void Close()

// We want to give test host a chance to safely close.
// The upper bound for wait should be 100ms.
var timeout = 100;
var timeout = int.TryParse(Environment.GetEnvironmentVariable("VSTEST_TESTHOST_SHUTDOWN_TIMEOUT"), out var time)
? time
: 100;
EqtTrace.Verbose("ProxyOperationManager.Close: waiting for test host to exit for {0} ms", timeout);
if (!_testHostExited.Wait(timeout))
{
Expand Down

0 comments on commit 1f88b0a

Please sign in to comment.