This is an automated email from the ASF dual-hosted git repository.
chenzhida pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
The following commit(s) were added to refs/heads/master by this push:
new 75417d88d change single unit test to deterministic implementation
(#4988)
75417d88d is described below
commit 75417d88dfc02b894280bf27b4a830df6e74ae19
Author: Anthony Xu <[email protected]>
AuthorDate: Wed Oct 22 20:24:53 2025 -0500
change single unit test to deterministic implementation (#4988)
---
.../transport/highway/HighwayServerCodecFilterTest.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
a/transports/transport-highway/src/test/java/org/apache/servicecomb/transport/highway/HighwayServerCodecFilterTest.java
b/transports/transport-highway/src/test/java/org/apache/servicecomb/transport/highway/HighwayServerCodecFilterTest.java
index 9bba840cf..46352690c 100644
---
a/transports/transport-highway/src/test/java/org/apache/servicecomb/transport/highway/HighwayServerCodecFilterTest.java
+++
b/transports/transport-highway/src/test/java/org/apache/servicecomb/transport/highway/HighwayServerCodecFilterTest.java
@@ -45,6 +45,7 @@ import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
+import org.skyscreamer.jsonassert.JSONAssert;
import org.springframework.core.env.Environment;
import io.vertx.core.MultiMap;
@@ -146,9 +147,10 @@ public class HighwayServerCodecFilterTest {
Response response = codecFilter.onFilter(invocation, nextNode).get();
assertThat(response.getStatus()).isEqualTo(INTERNAL_SERVER_ERROR);
- assertThat(Json.encode(((InvocationException)
response.getResult()).getErrorData()))
- .isEqualTo("{\"code\":\"SCB.50000000\",\"message\":\"Unexpected "
- + "exception when processing null. encode request failed\"}");
+
+ JSONAssert.assertEquals(Json.encode(((InvocationException)
response.getResult()).getErrorData()),
+ "{\"code\":\"SCB.50000000\",\"message\":\"Unexpected "
+ + "exception when processing null. encode request failed\"}",
false);
}
private void success_invocation() throws InterruptedException,
ExecutionException {