Skip to content

Commit

Permalink
fix WebSocketStatsTest numMessages back to 1000
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lachlan-roberts committed Aug 18, 2020
1 parent cfd31b2 commit 37a8e44
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -123,11 +123,10 @@ public void echoStatsTest() throws Exception
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);
Expand Down

0 comments on commit 37a8e44

Please sign in to comment.