diff --git a/pom.xml b/pom.xml
index 8c8db111..39441264 100644
--- a/pom.xml
+++ b/pom.xml
@@ -90,7 +90,7 @@
5.14.2
1.14.2
- 4.2.9.Final
+ 4.1.124.Final
3.5.4
0.8.14
@@ -98,6 +98,18 @@
3.12.0
+
+
+
+ io.grpc
+ grpc-bom
+ 1.75.0
+ pom
+ import
+
+
+
+
diff --git a/src/test/java/com/influxdb/v3/client/integration/E2ETest.java b/src/test/java/com/influxdb/v3/client/integration/E2ETest.java
index 63c95afa..917b606f 100644
--- a/src/test/java/com/influxdb/v3/client/integration/E2ETest.java
+++ b/src/test/java/com/influxdb/v3/client/integration/E2ETest.java
@@ -110,15 +110,16 @@ void correctSslCertificates() throws Exception {
.database(System.getenv("TESTING_INFLUXDB_DATABASE"))
.sslRootsFilePath(influxDBcertificateFile)
.build();
- InfluxDBClient influxDBClient = InfluxDBClient.getInstance(clientConfig);
- assertGetDataSuccess(influxDBClient);
+ try (InfluxDBClient influxDBClient = InfluxDBClient.getInstance(clientConfig)) {
+ assertGetDataSuccess(influxDBClient);
+ }
}
@EnabledIfEnvironmentVariable(named = "TESTING_INFLUXDB_URL", matches = ".*")
@EnabledIfEnvironmentVariable(named = "TESTING_INFLUXDB_TOKEN", matches = ".*")
@EnabledIfEnvironmentVariable(named = "TESTING_INFLUXDB_DATABASE", matches = ".*")
@Test
- void disableServerCertificateValidation() {
+ void disableServerCertificateValidation() throws Exception {
String wrongCertificateFile = "src/test/java/com/influxdb/v3/client/testdata/docker.com.pem";
ClientConfig clientConfig = new ClientConfig.Builder()
@@ -130,8 +131,9 @@ void disableServerCertificateValidation() {
.build();
// Test succeeded with wrong certificate file because disableServerCertificateValidation is true
- InfluxDBClient influxDBClient = InfluxDBClient.getInstance(clientConfig);
- assertGetDataSuccess(influxDBClient);
+ try (InfluxDBClient influxDBClient = InfluxDBClient.getInstance(clientConfig)) {
+ assertGetDataSuccess(influxDBClient);
+ }
}
@EnabledIfEnvironmentVariable(named = "TESTING_INFLUXDB_URL", matches = ".*")
@@ -196,8 +198,9 @@ public void testQueryRows() throws Exception {
String uuid = UUID.randomUUID().toString();
String measurement = "host22";
List