Skip to content

Commit 13b9538

Browse files
committed
chore: skip test if environment params are unavailable
1 parent a29d489 commit 13b9538

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ public void queryTimeoutSuperceededByGrpcOptTest() {
439439
Assertions.assertThat(thrown.getMessage()).matches(".*deadline.*exceeded.*");
440440
}
441441

442+
@EnabledIfEnvironmentVariable(named = "TESTING_INFLUXDB_URL", matches = ".*")
443+
@EnabledIfEnvironmentVariable(named = "TESTING_INFLUXDB_TOKEN", matches = ".*")
444+
@EnabledIfEnvironmentVariable(named = "TESTING_INFLUXDB_DATABASE", matches = ".*")
442445
@Test
443446
public void repeatQueryWithTimeoutTest() {
444447
long timeout = 1000;

0 commit comments

Comments
 (0)