Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 4732d38

Browse files
committed
remove accidentally-duplicated test
1 parent 746bb49 commit 4732d38

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

test/Microsoft.AspNetCore.SignalR.Client.Tests/HttpConnectionTests.cs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,32 +1200,5 @@ public async Task CorrectlyHandlesQueryStringWhenAppendingNegotiateToUrl(string
12001200
await connection.StartAsync().OrTimeout();
12011201
await connection.DisposeAsync().OrTimeout();
12021202
}
1203-
1204-
[Fact]
1205-
public async Task AbortAsyncTriggersClosedWithProvidedException()
1206-
{
1207-
var mockHttpHandler = new Mock<HttpMessageHandler>();
1208-
mockHttpHandler.Protected()
1209-
.Setup<Task<HttpResponseMessage>>("SendAsync", ItExpr.IsAny<HttpRequestMessage>(), ItExpr.IsAny<CancellationToken>())
1210-
.Returns<HttpRequestMessage, CancellationToken>(async (request, cancellationToken) =>
1211-
{
1212-
await Task.Yield();
1213-
return ResponseUtils.IsNegotiateRequest(request)
1214-
? ResponseUtils.CreateResponse(HttpStatusCode.OK, ResponseUtils.CreateNegotiationResponse())
1215-
: ResponseUtils.CreateResponse(HttpStatusCode.OK);
1216-
});
1217-
1218-
var connection = new HttpConnection(new Uri("http://fakeuri.org"), TransportType.LongPolling, loggerFactory: null,
1219-
httpOptions: new HttpOptions { HttpMessageHandler = mockHttpHandler.Object });
1220-
1221-
var closeTcs = new TaskCompletionSource<Exception>();
1222-
connection.Closed += ex => closeTcs.TrySetResult(ex);
1223-
1224-
await connection.StartAsync().OrTimeout();
1225-
1226-
var exception = new Exception("Whoops!");
1227-
await connection.AbortAsync(exception).OrTimeout();
1228-
Assert.Same(exception, await closeTcs.Task.OrTimeout());
1229-
}
12301203
}
12311204
}

0 commit comments

Comments
 (0)