You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2020/03/27 03:54:07 UTC

[servicecomb-java-chassis] 02/02: [SCB-1822]fix random test error

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 <bi...@qq.com>
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")));
     }
   }
 }