fix WS DistributionTest incorrect test expectation

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-04-30 10:14:43 +10:00
parent b0e57ffd6d
commit 1ad600ea49
1 changed files with 2 additions and 2 deletions

View File

@ -467,7 +467,7 @@ public class DistributionTests extends AbstractDistributionTest
assertThat(webSocketListener.textMessages.poll(5, TimeUnit.SECONDS), is("echo message"));
session.close();
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.
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"));
session.close();
assertTrue(webSocketListener.closeLatch.await(5, TimeUnit.SECONDS));
assertThat(webSocketListener.closeCode, is(StatusCode.NORMAL));
assertThat(webSocketListener.closeCode, is(StatusCode.NO_CODE));
}
}
}