Skip to content

Commit 096596a

Browse files
committed
tests: set timeouts for timeout tests to shorter value for CircleCI
1 parent d0d2d4c commit 096596a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/influxdb/v3/client/ITQueryWrite.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public void queryTimeoutExceededTest() {
317317
.host(System.getenv("TESTING_INFLUXDB_URL"))
318318
.token(System.getenv("TESTING_INFLUXDB_TOKEN").toCharArray())
319319
.database(System.getenv("TESTING_INFLUXDB_DATABASE"))
320-
.queryTimeout(Duration.ofMillis(100))
320+
.queryTimeout(Duration.ofNanos(5000))
321321
.build());
322322

323323
String measurement = "timeout_test_" + Math.round(Math.random() * 100_000);
@@ -423,7 +423,7 @@ public void queryTimeoutSuperceededByGrpcOptTest() {
423423

424424
QueryOptions queryOptions = QueryOptions.defaultQueryOptions();
425425
queryOptions.setGrpcCallOptions(new GrpcCallOptions.Builder()
426-
.withDeadline(Deadline.after(100, TimeUnit.MILLISECONDS))
426+
.withDeadline(Deadline.after(5000, TimeUnit.NANOSECONDS))
427427
.build()
428428
);
429429

0 commit comments

Comments
 (0)