Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ internal static Task MessageLoopAsync(
ioException,
remoteEndPoint,
localEndPoint);
error = ioException;
// Do not pass the error to the caller, the transport was torn down because testhost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not super happy about this, but if we do it later in the code we end up ignoring errors for all types of transports (we have just 1 type now, but the abstractions are there). Or we have to match a specific type of error, and then make sure it was raised here, which is pretty much the same as not raising it at all.

// disconnected, in 99% of the cases. This error ends up confusing developers
// even though it just means "testhost crashed", look at testhost to see what happened.
// https://github.com/microsoft/vstest/issues/4461
// error = ioException;
break;
}
}
Expand Down