Skip to content

Commit

Permalink
1.RpcActuatorAutoConfiguration autoconf after ReadinessAutoConfiguration
Browse files Browse the repository at this point in the history
2.update unit tests
  • Loading branch information
致节 committed Feb 27, 2024
1 parent d4ff594 commit a12878d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"default.proxy": "javassist",
"rpc.config.order": 1000,
"consumer.address.wait": 1,
"provider.delay": 2000
"consumer.address.wait": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import com.alipay.sofa.rpc.core.exception.SofaRouteException;
import com.alipay.sofa.smoke.tests.rpc.boot.RpcSofaBootApplication;
import com.alipay.sofa.smoke.tests.rpc.boot.bean.delayregister.DelayRegisterService;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.actuate.health.Health;
Expand All @@ -44,6 +46,17 @@
"sofa.boot.rpc.enable-delay-register=true" })
@Import(DelayRegisterTestsBase.DelayRegisterConfiguration.class)
public class DelayRegisterTestsBase {

@BeforeAll
public static void setUp() {
System.setProperty("provider.delay", "2000");
}

@AfterAll
public static void clear() {
System.clearProperty("provider.delay");
}

@Autowired
private DelayRegisterService delayRegisterService;

Expand Down

0 comments on commit a12878d

Please sign in to comment.