React to CoreFx changes

This commit is contained in:
BrennanConroy 2017-04-05 08:48:30 -07:00
parent 5df022df0c
commit 2dfada051e
1 changed files with 5 additions and 5 deletions

View File

@ -64,13 +64,13 @@ namespace Microsoft.Extensions.WebSockets.Internal.Tests
var result = await RunReceiveTest(
producer: async (channel, cancellationToken) =>
{
await channel.WriteAsync(new byte[] { 0x02, 0x05 }.AsSpan()).OrTimeout();
await channel.WriteAsync(new byte[] { 0x02, 0x05 }).OrTimeout();
await Task.Yield();
await channel.WriteAsync(new byte[] { 0xDE, 0xAD, 0xBE, 0xEF, 0xAB, 0x80, 0x05 }.AsSpan()).OrTimeout();
await channel.WriteAsync(new byte[] { 0xDE, 0xAD, 0xBE, 0xEF, 0xAB, 0x80, 0x05 }).OrTimeout();
await Task.Yield();
await channel.WriteAsync(new byte[] { 0xDE, 0xAD, 0xBE, 0xEF }.AsSpan()).OrTimeout();
await channel.WriteAsync(new byte[] { 0xDE, 0xAD, 0xBE, 0xEF }).OrTimeout();
await Task.Yield();
await channel.WriteAsync(new byte[] { 0xAB }.AsSpan()).OrTimeout();
await channel.WriteAsync(new byte[] { 0xAB }).OrTimeout();
await Task.Yield();
});
@ -178,7 +178,7 @@ namespace Microsoft.Extensions.WebSockets.Internal.Tests
var result = await RunReceiveTest(
producer: async (channel, cancellationToken) =>
{
await channel.WriteAsync(rawFrame.AsSpan()).OrTimeout();
await channel.WriteAsync(rawFrame).OrTimeout();
});
var frames = result.Received;
Assert.Equal(1, frames.Count);