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 <[email protected]>
  • Loading branch information
manusa committed Dec 16, 2024
1 parent a5d57e5 commit b1a1120
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 b1a1120

Please sign in to comment.