Fix TestWebSocketConnectionFeature that CancellationToken is not working (#2906)

This commit is contained in:
Liangying.Wei 2018-09-06 00:31:05 +08:00 committed by Andrew Stanton-Nurse
parent d20d4f128e
commit 201c058b93
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ namespace Microsoft.AspNetCore.Http.Connections.Tests
{
if (_internalBuffer.Buffer == null || _internalBuffer.Buffer.Length == 0)
{
await _input.WaitToReadAsync();
await _input.WaitToReadAsync(cancellationToken);
if (_input.TryRead(out var message))
{