Skip to content

Commit 9938cd8

Browse files
authored
Don't print socket transport error in console (#4493)
1 parent ecdccae commit 9938cd8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Microsoft.TestPlatform.CommunicationUtilities/TcpClientExtensions.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ internal static Task MessageLoopAsync(
7171
ioException,
7272
remoteEndPoint,
7373
localEndPoint);
74-
error = ioException;
74+
// Do not pass the error to the caller, the transport was torn down because testhost
75+
// disconnected, in 99% of the cases. This error ends up confusing developers
76+
// even though it just means "testhost crashed", look at testhost to see what happened.
77+
// https://github.com/microsoft/vstest/issues/4461
78+
// error = ioException;
7579
break;
7680
}
7781
}

0 commit comments

Comments
 (0)