Skip to content

Commit

Permalink
update the duration type to reflect change in asynchttpclient
Browse files Browse the repository at this point in the history
  • Loading branch information
janjwerner-confluent committed Dec 12, 2024
1 parent 47e4bc1 commit 0292154
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/test/java/io/confluent/rest/CustomInitTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.Properties;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Consumer;
import java.time.Duration;
import javax.websocket.EndpointConfig;
import javax.websocket.OnOpen;
import javax.websocket.Session;
Expand Down Expand Up @@ -143,7 +144,7 @@ public void onError(Throwable t) {

WebSocket ws = Dsl.asyncHttpClient()
.prepareGet(uri + "/test")
.setRequestTimeout(10000)
.setRequestTimeout(Duration.ofSeconds(10000))
.execute(wsHandler)
.get();

Expand Down
3 changes: 2 additions & 1 deletion core/src/test/java/io/confluent/rest/SaslTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import java.util.Collections;
import java.util.Map;
import java.util.Properties;
import java.time.Duration;

import javax.security.auth.login.Configuration;
import javax.ws.rs.GET;
Expand Down Expand Up @@ -283,7 +284,7 @@ public void onError(Throwable t) {
}

WebSocket ws = requestBuilder
.setRequestTimeout(10000)
.setRequestTimeout(Duration.ofSeconds(10000))
.execute(wsHandler)
.get();

Expand Down

0 comments on commit 0292154

Please sign in to comment.