ReEnable SSETransportStopsSendAndReceiveLoopsWhenTransportStopped (#1877)

This commit is contained in:
BrennanConroy 2018-04-05 17:16:39 -07:00 committed by GitHub
parent 19b2fea0d8
commit 307ed01051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ namespace Microsoft.AspNetCore.SignalR.Client.Tests
}
}
[Fact(Skip = "Flaky tests keep failing")]
[Fact]
public async Task SSETransportStopsSendAndReceiveLoopsWhenTransportStopped()
{
var eventStreamCts = new CancellationTokenSource();
@ -107,7 +107,7 @@ namespace Microsoft.AspNetCore.SignalR.Client.Tests
transportActiveTask = sseTransport.Running;
Assert.False(transportActiveTask.IsCompleted);
var message = await pair.Transport.Input.ReadSingleAsync().OrTimeout();
Assert.Equal("3:abc", Encoding.ASCII.GetString(message));
Assert.StartsWith("3:abc", Encoding.ASCII.GetString(message));
}
finally
{