File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/test/java/com/influxdb/v3/client/integration Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2222package com .influxdb .v3 .client .integration ;
2323
2424import java .math .BigInteger ;
25+ import java .net .ConnectException ;
2526import java .net .URL ;
2627import java .net .URLConnection ;
2728import java .time .Instant ;
@@ -59,8 +60,10 @@ void testQueryWithProxy() {
5960 URLConnection hpCon = new URL (url ).openConnection ();
6061 hpCon .connect ();
6162 } catch (Exception e ) {
62- LOG .warning ("Tests with proxy have been skipped because no proxy is running on " + proxyUrl );
63- return ;
63+ if (e instanceof ConnectException && e .getMessage ().contains ("Connection refused" )) {
64+ LOG .warning ("Tests with proxy have been skipped because no proxy is running on " + proxyUrl );
65+ return ;
66+ }
6467 }
6568
6669 ClientConfig clientConfig = new ClientConfig .Builder ()
You can’t perform that action at this time.
0 commit comments