From 67030ba4867d34b25d5fdc5b6c02a65b6c7d759c Mon Sep 17 00:00:00 2001 From: wutingjia <33154970+wutingjia@users.noreply.github.com> Date: Sun, 16 Oct 2022 18:47:11 +0800 Subject: [PATCH] =?UTF-8?q?disable=20spring=20cloud=20discovery=20when=20r?= =?UTF-8?q?unning=20test=20to=20speed=20up=20test=20pro=E2=80=A6=20(#4604)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * disable spring cloud discovery when running test to speed up test process and reduce error log * add change log * rollback change log * rollback change log --- .../ctrip/framework/apollo/biz/AbstractIntegrationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apollo-biz/src/test/java/com/ctrip/framework/apollo/biz/AbstractIntegrationTest.java b/apollo-biz/src/test/java/com/ctrip/framework/apollo/biz/AbstractIntegrationTest.java index 5dd265bcaeb..114835a3016 100644 --- a/apollo-biz/src/test/java/com/ctrip/framework/apollo/biz/AbstractIntegrationTest.java +++ b/apollo-biz/src/test/java/com/ctrip/framework/apollo/biz/AbstractIntegrationTest.java @@ -26,7 +26,8 @@ @RunWith(SpringJUnit4ClassRunner.class) @Rollback @Transactional -@SpringBootTest(classes = BizTestConfiguration.class, webEnvironment = WebEnvironment.RANDOM_PORT) +@SpringBootTest(classes = BizTestConfiguration.class, webEnvironment = WebEnvironment.RANDOM_PORT + , properties = {"spring.cloud.discovery.enabled=false"}) public abstract class AbstractIntegrationTest { }