Fix build (#1825)
This commit is contained in:
parent
3460d44848
commit
416b27c6d6
|
|
@ -49,7 +49,7 @@ namespace Microsoft.AspNetCore.Http.Connections.Tests
|
||||||
// Send a frame, then close
|
// Send a frame, then close
|
||||||
await feature.Client.SendAsync(
|
await feature.Client.SendAsync(
|
||||||
buffer: new ArraySegment<byte>(Encoding.UTF8.GetBytes("Hello")),
|
buffer: new ArraySegment<byte>(Encoding.UTF8.GetBytes("Hello")),
|
||||||
messageType: Enum.Parse<WebSocketMessageType>(webSocketMessageType),
|
messageType: (WebSocketMessageType)Enum.Parse(typeof(WebSocketMessageType), webSocketMessageType),
|
||||||
endOfMessage: true,
|
endOfMessage: true,
|
||||||
cancellationToken: CancellationToken.None);
|
cancellationToken: CancellationToken.None);
|
||||||
await feature.Client.CloseAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None);
|
await feature.Client.CloseAsync(WebSocketCloseStatus.NormalClosure, "", CancellationToken.None);
|
||||||
|
|
@ -106,7 +106,7 @@ namespace Microsoft.AspNetCore.Http.Connections.Tests
|
||||||
|
|
||||||
Assert.Equal(1, clientSummary.Received.Count);
|
Assert.Equal(1, clientSummary.Received.Count);
|
||||||
Assert.True(clientSummary.Received[0].EndOfMessage);
|
Assert.True(clientSummary.Received[0].EndOfMessage);
|
||||||
Assert.Equal(Enum.Parse<WebSocketMessageType>(expectedMessageType), clientSummary.Received[0].MessageType);
|
Assert.Equal((WebSocketMessageType)Enum.Parse(typeof(WebSocketMessageType), expectedMessageType), clientSummary.Received[0].MessageType);
|
||||||
Assert.Equal("Hello", Encoding.UTF8.GetString(clientSummary.Received[0].Buffer));
|
Assert.Equal("Hello", Encoding.UTF8.GetString(clientSummary.Received[0].Buffer));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue