diff --git a/pom.xml b/pom.xml
index 2b46501a12..d695e9b402 100644
--- a/pom.xml
+++ b/pom.xml
@@ -92,13 +92,13 @@
1.13.0-2021.0.8-SNAPSHOT
- 5.3.25
+ 5.3.31
- 2.6.15
+ 2.7.18
- 2021.0.8
+ 2021.0.9
0.8.8
diff --git a/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/adapter/MockedConfigKVFile.java b/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/adapter/MockedConfigKVFile.java
index 59e89ebcc2..bad8894a1a 100644
--- a/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/adapter/MockedConfigKVFile.java
+++ b/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/adapter/MockedConfigKVFile.java
@@ -138,6 +138,11 @@ public boolean hasContent() {
return false;
}
+ @Override
+ public String getMd5() {
+ return null;
+ }
+
@Override
public void addChangeListener(ConfigFileChangeListener configFileChangeListener) {
diff --git a/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/condition/ConditionalOnReflectRefreshTypeTest.java b/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/condition/ConditionalOnReflectRefreshTypeTest.java
index e50eac0cc3..ebde3e470b 100644
--- a/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/condition/ConditionalOnReflectRefreshTypeTest.java
+++ b/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/condition/ConditionalOnReflectRefreshTypeTest.java
@@ -20,6 +20,7 @@
import java.io.IOException;
import java.net.ServerSocket;
+import java.util.Objects;
import com.tencent.cloud.polaris.config.PolarisConfigAutoConfiguration;
import com.tencent.cloud.polaris.config.PolarisConfigBootstrapAutoConfiguration;
@@ -67,7 +68,9 @@ static void beforeAll() {
@AfterAll
static void afterAll() throws IOException {
- serverSocket.close();
+ if (Objects.nonNull(serverSocket)) {
+ serverSocket.close();
+ }
}
@Test
diff --git a/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/spring/annotation/SpringValueProcessorTest.java b/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/spring/annotation/SpringValueProcessorTest.java
index d4d30c2f0b..24439a72a1 100644
--- a/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/spring/annotation/SpringValueProcessorTest.java
+++ b/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/spring/annotation/SpringValueProcessorTest.java
@@ -22,6 +22,7 @@
import java.lang.reflect.Method;
import java.net.ServerSocket;
import java.util.Collection;
+import java.util.Objects;
import java.util.Optional;
import com.tencent.cloud.polaris.config.PolarisConfigBootstrapAutoConfiguration;
@@ -71,7 +72,9 @@ static void beforeAll() {
@AfterAll
static void afterAll() throws IOException {
- serverSocket.close();
+ if (Objects.nonNull(serverSocket)) {
+ serverSocket.close();
+ }
}
@Test