Skip to content

Commit

Permalink
fixed nacos healthTests
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyouling committed Aug 12, 2023
1 parent ad149c0 commit 1235489
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.fasterxml.jackson.databind.node.LongNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.huaweicloud.sermant.core.plugin.agent.entity.ExecuteContext;
import com.huaweicloud.sermant.core.plugin.agent.interceptor.Interceptor;

import org.junit.Assert;
import org.junit.Test;
Expand All @@ -50,6 +49,7 @@ public void close() throws Exception {
public void doBefore() throws Exception {
REGISTER_CONFIG.setEnableSpringRegister(true);
REGISTER_CONFIG.setOpenMigration(true);
RegisterDynamicConfig.INSTANCE.setClose(false);
final ExecuteContext context = interceptor.before(buildContext());
Assert.assertFalse(context.isSkip());
RegisterDynamicConfig.INSTANCE.setClose(true);
Expand Down

0 comments on commit 1235489

Please sign in to comment.