Skip to content

Commit

Permalink
KOGITO-396: WebSocketSubscriptionTest: close http client gracefully e…
Browse files Browse the repository at this point in the history
…ven on failure (#190)
  • Loading branch information
evacchi authored Oct 9, 2019
1 parent 9b12772 commit 247b5ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private CompletableFuture<JsonObject> subscribe(String subscription) throws Exce
wsFuture.completeExceptionally(websocketRes.cause());
}
});
cf.thenRun(() -> httpClient.close());
cf.whenComplete((r, t) -> httpClient.close());
wsFuture.get(1, TimeUnit.MINUTES);
return cf;
}
Expand Down

0 comments on commit 247b5ea

Please sign in to comment.