Fix TestWebSocketConnectionFeature that CancellationToken is not working (#2906)
This commit is contained in:
parent
d20d4f128e
commit
201c058b93
|
|
@ -118,7 +118,7 @@ namespace Microsoft.AspNetCore.Http.Connections.Tests
|
||||||
{
|
{
|
||||||
if (_internalBuffer.Buffer == null || _internalBuffer.Buffer.Length == 0)
|
if (_internalBuffer.Buffer == null || _internalBuffer.Buffer.Length == 0)
|
||||||
{
|
{
|
||||||
await _input.WaitToReadAsync();
|
await _input.WaitToReadAsync(cancellationToken);
|
||||||
|
|
||||||
if (_input.TryRead(out var message))
|
if (_input.TryRead(out var message))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue