fix WS DistributionTest incorrect test expectation
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
b0e57ffd6d
commit
1ad600ea49
|
@ -467,7 +467,7 @@ public class DistributionTests extends AbstractDistributionTest
|
||||||
assertThat(webSocketListener.textMessages.poll(5, TimeUnit.SECONDS), is("echo message"));
|
assertThat(webSocketListener.textMessages.poll(5, TimeUnit.SECONDS), is("echo message"));
|
||||||
session.close();
|
session.close();
|
||||||
assertTrue(webSocketListener.closeLatch.await(5, TimeUnit.SECONDS));
|
assertTrue(webSocketListener.closeLatch.await(5, TimeUnit.SECONDS));
|
||||||
assertThat(webSocketListener.closeCode, is(StatusCode.NORMAL));
|
assertThat(webSocketListener.closeCode, is(StatusCode.NO_CODE));
|
||||||
|
|
||||||
// Verify that /test2 and /test3 could not be started.
|
// Verify that /test2 and /test3 could not be started.
|
||||||
ContentResponse response = client.GET(serverUri.resolve("/test2/badonopen/a"));
|
ContentResponse response = client.GET(serverUri.resolve("/test2/badonopen/a"));
|
||||||
|
@ -482,7 +482,7 @@ public class DistributionTests extends AbstractDistributionTest
|
||||||
assertThat(webSocketListener.textMessages.poll(5, TimeUnit.SECONDS), is("echo message"));
|
assertThat(webSocketListener.textMessages.poll(5, TimeUnit.SECONDS), is("echo message"));
|
||||||
session.close();
|
session.close();
|
||||||
assertTrue(webSocketListener.closeLatch.await(5, TimeUnit.SECONDS));
|
assertTrue(webSocketListener.closeLatch.await(5, TimeUnit.SECONDS));
|
||||||
assertThat(webSocketListener.closeCode, is(StatusCode.NORMAL));
|
assertThat(webSocketListener.closeCode, is(StatusCode.NO_CODE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue