You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ra...@apache.org on 2025/11/26 15:38:11 UTC
(dubbo) branch 3.3 updated: Fix several flaky tests in DubboBootstrapTest (#15793)
This is an automated email from the ASF dual-hosted git repository.
rainyu pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.3 by this push:
new b58955b67e Fix several flaky tests in DubboBootstrapTest (#15793)
b58955b67e is described below
commit b58955b67ea38b87cf83e16465e05928f98ce9b0
Author: Anshul Bisht <85...@users.noreply.github.com>
AuthorDate: Wed Nov 26 09:38:05 2025 -0600
Fix several flaky tests in DubboBootstrapTest (#15793)
---
.../org/apache/dubbo/config/bootstrap/DubboBootstrapTest.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/DubboBootstrapTest.java b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/DubboBootstrapTest.java
index e0c47f1fda..5ae4462701 100644
--- a/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/DubboBootstrapTest.java
+++ b/dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/bootstrap/DubboBootstrapTest.java
@@ -67,6 +67,7 @@ import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
@@ -109,6 +110,14 @@ class DubboBootstrapTest {
SystemPropertyConfigUtils.clearSystemProperty(CommonConstants.DubboProperty.DUBBO_PROPERTIES_KEY);
}
+ @BeforeEach
+ public void beforeEach() {
+ DubboBootstrap.reset();
+ SysProps.clear();
+ SysProps.setProperty("dubbo.metrics.enabled", "false");
+ SysProps.setProperty("dubbo.metrics.protocol", "disabled");
+ }
+
@AfterEach
public void afterEach() throws IOException {
DubboBootstrap.reset();