Skip to content

Commit 1810e77

Browse files
committed
Revert changes to AttemptingToPollWhileAlreadyPollingReplacesTheCurrentPoll
1 parent 049de8e commit 1810e77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SignalR/common/Http.Connections/test/HttpConnectionDispatcherTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ public async Task BlockingConnectionWorksWithLongPollingConnection()
12031203
}
12041204

12051205
[Fact]
1206-
public async Task AttemptingToPollWhileAlreadyPollingResultsIn409Response()
1206+
public async Task AttemptingToPollWhileAlreadyPollingReplacesTheCurrentPoll()
12071207
{
12081208
using (StartVerifiableLog())
12091209
{
@@ -1239,8 +1239,8 @@ public async Task AttemptingToPollWhileAlreadyPollingResultsIn409Response()
12391239
// Verify the results
12401240
Assert.Equal(StatusCodes.Status204NoContent, context1.Response.StatusCode);
12411241
Assert.Equal(string.Empty, GetContentAsString(context1.Response.Body));
1242-
Assert.Equal(StatusCodes.Status409Conflict, context2.Response.StatusCode);
1243-
Assert.Equal(string.Empty, GetContentAsString(context2.Response.Body));
1242+
Assert.Equal(StatusCodes.Status200OK, context2.Response.StatusCode);
1243+
Assert.Equal("Hello, World", GetContentAsString(context2.Response.Body));
12441244
}
12451245
}
12461246

0 commit comments

Comments
 (0)