Skip to content

Commit

Permalink
test: improve async reliability of AbstractHttpClientNewWebSocketBuil…
Browse files Browse the repository at this point in the history
…derTest

Signed-off-by: Marc Nuri <marc@marcnuri.com>
  • Loading branch information
manusa authored Dec 16, 2024
1 parent 4f60e55 commit b6913be
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void buildAsyncReceivesMultipleMessages() throws Exception {
.always();
final CountDownLatch latch = new CountDownLatch(2);
final Set<String> messages = ConcurrentHashMap.newKeySet();
final WebSocket ws = httpClient.newWebSocketBuilder()
httpClient.newWebSocketBuilder()
.uri(URI.create(server.url("/websocket-multiple-message")))
.buildAsync(new WebSocket.Listener() {
@Override
Expand Down Expand Up @@ -157,6 +157,7 @@ void buildAsyncIncludesRequiredHeaders() throws Exception {
server.expect().withPath("/websocket-headers-test")
.andUpgradeToWebSocket()
.open()
.waitFor(50L).andEmit("OK")
.done()
.always();
httpClient.newWebSocketBuilder()
Expand Down

0 comments on commit b6913be

Please sign in to comment.