Skip to content

Commit

Permalink
Fix test case not fail
Browse files Browse the repository at this point in the history
  • Loading branch information
liubao68 committed Jul 31, 2024
1 parent 358508c commit 6ae4391
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.apache.servicecomb.demo.springmvc;

import org.apache.servicecomb.demo.TestMgr;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
Expand All @@ -35,5 +36,6 @@ public void setUp() {
@Test
public void clientGetsNoError() {
SpringmvcClient.run();
Assertions.assertTrue(TestMgr.isSuccess());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void onConfigurationProblemsAlarmEvent(ConfigurationProblemsAlarmEvent ev
@Override
public void testRestTransport() throws Exception {
TestMgr.check(event != null, true);
TestMgr.check(event.getProblems(), "Configurations warnings:\n" +
TestMgr.check(event.getProblems(), "[WARN]Configurations warnings:\n" +
"Configurations with prefix `service_description` is deprecated, "
+ "use `servicecomb.service` instead. Find keys [service_description.initialStatus]\n"
+ "Configuration `servicecomb.loadbalance.isolation.*` is removed, use governance instead. "
Expand Down

0 comments on commit 6ae4391

Please sign in to comment.