fix WebSocketStatsTest numMessages back to 1000

Remove server getConnections check after client open event
as the server connection may not be open yet.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-08-19 08:17:38 +10:00
parent cfd31b2cf5
commit 37a8e44347
1 changed files with 1 additions and 2 deletions

View File

@ -123,11 +123,10 @@ public class WebSocketStatsTest
EventSocket socket = new EventSocket();
Future<Session> connect = client.connect(socket, uri);
final long numMessages = 1;
final long numMessages = 1000;
final String msgText = "hello world";
try (Session session = connect.get(5, TimeUnit.SECONDS))
{
assertThat(statistics.getConnections(), is(1L));
for (int i = 0; i < numMessages; i++)
{
session.getRemote().sendString(msgText);