From 256b59edd49412c9e6debf691aeb190350b5c0f1 Mon Sep 17 00:00:00 2001 From: fuyuwei01 Date: Wed, 24 Jul 2024 16:21:01 +0800 Subject: [PATCH] fix: move @ConditionalOnTsfEnabled to spring-cloud-tencent-commons and fix PolarisInetUtilsAutoConfiguration --- CHANGELOG.md | 3 ++- .../polaris/config/listener/ConfigChangeListenerTest.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f29c97754..3176588e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,4 +16,5 @@ - [feat:add zero protection.](https://github.com/Tencent/spring-cloud-tencent/pull/1346) - [fix:fix no registry when lossless is disabled.](https://github.com/Tencent/spring-cloud-tencent/pull/1347) - [fix:fix the ratelimit bug for 2022](https://github.com/Tencent/spring-cloud-tencent/pull/1348) -- [feat:add Tencent Cloud TSF support. ](https://github.com/Tencent/spring-cloud-tencent/pull/1350) \ No newline at end of file +- [feat:add Tencent Cloud TSF support. ](https://github.com/Tencent/spring-cloud-tencent/pull/1350) +- \ No newline at end of file diff --git a/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/listener/ConfigChangeListenerTest.java b/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/listener/ConfigChangeListenerTest.java index 465af4353..3e648635e 100644 --- a/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/listener/ConfigChangeListenerTest.java +++ b/spring-cloud-starter-tencent-polaris-config/src/test/java/com/tencent/cloud/polaris/config/listener/ConfigChangeListenerTest.java @@ -71,7 +71,7 @@ public class ConfigChangeListenerTest { applicationEventPublisher.publishEvent(event); //after change - boolean ret = hits.await(2, TimeUnit.SECONDS); + boolean ret = hits.await(5, TimeUnit.SECONDS); Assertions.assertThat(ret).isEqualTo(true); Assertions.assertThat(testConfig.getChangeCnt()).isEqualTo(2);