Skip to content

Commit

Permalink
[System] Update flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Feb 23, 2017
1 parent 368c02f commit a5f5ca7
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -159,7 +159,11 @@ public void CloseOutputAsyncTest ()
[Category ("MobileNotWorking")] // Fails when ran as part of the entire BCL test suite. Works when only this fixture is ran
public void CloseAsyncTest ()
{
Assert.IsTrue (socket.ConnectAsync (new Uri (EchoServerUrl), CancellationToken.None).Wait (5000));
if (!socket.ConnectAsync (new Uri (EchoServerUrl), CancellationToken.None).Wait (5000)) {
Assert.Inconclusive (socket.State.ToString ());
return;
}

Assert.AreEqual (WebSocketState.Open, socket.State);

Assert.IsTrue (socket.CloseAsync (WebSocketCloseStatus.NormalClosure, string.Empty, CancellationToken.None).Wait (5000));
Expand Down

0 comments on commit a5f5ca7

Please sign in to comment.