Temporary swallow SocketException in DthTest
This commit is contained in:
parent
14d5dd80b0
commit
d82c2f557a
1 changed files with 11 additions and 1 deletions
|
@ -225,7 +225,17 @@ namespace Microsoft.DotNet.ProjectModel.Server.Tests
|
|||
_writer.Dispose();
|
||||
_networkStream.Dispose();
|
||||
_readCancellationToken.Cancel();
|
||||
_socket.Shutdown(SocketShutdown.Both);
|
||||
|
||||
try
|
||||
{
|
||||
_socket.Shutdown(SocketShutdown.Both);
|
||||
}
|
||||
catch (SocketException)
|
||||
{
|
||||
// Swallow this error for now.
|
||||
// This is a temporary fix for a random failure on CI. The issue happens on Windowx x86
|
||||
// only.
|
||||
}
|
||||
}
|
||||
|
||||
private void ReadMessage(CancellationToken cancellationToken)
|
||||
|
|
Loading…
Reference in a new issue