This is an automated email from the ASF dual-hosted git repository. liubao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git
commit e3b4b80fc8b25e54c75065ce2cd0356afbe17d68 Author: liubao <[email protected]> AuthorDate: Wed Mar 25 21:11:30 2020 +0800 [SCB-1822]fix random test error --- .../apache/servicecomb/it/testcase/TestRestVertxTransportConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestRestVertxTransportConfig.java b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestRestVertxTransportConfig.java index 63615f5..509be60 100644 --- a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestRestVertxTransportConfig.java +++ b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestRestVertxTransportConfig.java @@ -85,8 +85,10 @@ public class TestRestVertxTransportConfig { consumers.getIntf().testClientReceiveHeaderSize(100001 - RESPONSE_HEADER.length()); fail("an exception is expected!"); } catch (InvocationException e) { + // in slow environment, may cause connection close. Assert.assertThat(ExceptionUtils.getExceptionMessageWithoutTrace(e), - CoreMatchers.containsString("HTTP header is larger than 10000 bytes.")); + CoreMatchers.anyOf(CoreMatchers.containsString("HTTP header is larger than 10000 bytes"), + CoreMatchers.containsString("Connection was closed"))); } } }
