Skip to content

Commit f9af613

Browse files
committed
test: add assume to proxy test - so it gets marked as skipped by junit.
1 parent 884410a commit f9af613

File tree

1 file changed

+3
-0
lines changed
  • src/test/java/com/influxdb/v3/client/integration

1 file changed

+3
-0
lines changed

src/test/java/com/influxdb/v3/client/integration/E2ETest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
import com.influxdb.v3.client.write.WriteOptions;
4444
import com.influxdb.v3.client.write.WritePrecision;
4545

46+
import static org.junit.jupiter.api.Assumptions.assumeFalse;
47+
4648
public class E2ETest {
4749

4850
private static final java.util.logging.Logger LOG = Logger.getLogger(E2ETest.class.getName());
@@ -62,6 +64,7 @@ void testQueryWithProxy() {
6264
} catch (Exception e) {
6365
if (e instanceof ConnectException && e.getMessage().contains("Connection refused")) {
6466
LOG.warning("Tests with proxy have been skipped because no proxy is running on " + proxyUrl);
67+
assumeFalse(e.getMessage().contains("Connection refused"));
6568
return;
6669
}
6770
}

0 commit comments

Comments
 (0)