You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by sm...@apache.org on 2021/07/15 18:58:34 UTC

[knox] branch master updated: KNOX-2630. BadUrlTest and BadBackendTest are flaky (amagyar) (#466)

This is an automated email from the ASF dual-hosted git repository.

smolnar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new ddb75cf  KNOX-2630. BadUrlTest and BadBackendTest are flaky (amagyar) (#466)
ddb75cf is described below

commit ddb75cfb8b067a426b529720f79cc8ecc73511c8
Author: Attila Magyar <m....@gmail.com>
AuthorDate: Thu Jul 15 20:58:27 2021 +0200

    KNOX-2630. BadUrlTest and BadBackendTest are flaky (amagyar) (#466)
    
    Co-authored-by: zeroflag <am...@cloudera.com>
---
 .../test/java/org/apache/knox/gateway/websockets/BadBackendTest.java    | 2 +-
 .../src/test/java/org/apache/knox/gateway/websockets/BadUrlTest.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gateway-server/src/test/java/org/apache/knox/gateway/websockets/BadBackendTest.java b/gateway-server/src/test/java/org/apache/knox/gateway/websockets/BadBackendTest.java
index 194f172..0874f52 100644
--- a/gateway-server/src/test/java/org/apache/knox/gateway/websockets/BadBackendTest.java
+++ b/gateway-server/src/test/java/org/apache/knox/gateway/websockets/BadBackendTest.java
@@ -72,7 +72,7 @@ public class BadBackendTest {
         proxyUri);
     session.getBasicRemote().sendText(message);
 
-    client.awaitClose(CloseReason.CloseCodes.UNEXPECTED_CONDITION.getCode(), 1000,
+    client.awaitClose(CloseReason.CloseCodes.UNEXPECTED_CONDITION.getCode(), 5000,
         TimeUnit.MILLISECONDS);
 
     Assert.assertThat(client.close.getCloseCode().getCode(), CoreMatchers.is(CloseReason.CloseCodes.UNEXPECTED_CONDITION.getCode()));
diff --git a/gateway-server/src/test/java/org/apache/knox/gateway/websockets/BadUrlTest.java b/gateway-server/src/test/java/org/apache/knox/gateway/websockets/BadUrlTest.java
index b6bc60e..4b40598 100644
--- a/gateway-server/src/test/java/org/apache/knox/gateway/websockets/BadUrlTest.java
+++ b/gateway-server/src/test/java/org/apache/knox/gateway/websockets/BadUrlTest.java
@@ -144,7 +144,7 @@ public class BadUrlTest {
         new URI(serverUri.toString() + "gateway/websocket/ws"));
 
     client.awaitClose(CloseReason.CloseCodes.UNEXPECTED_CONDITION.getCode(),
-        1000, TimeUnit.MILLISECONDS);
+        5000, TimeUnit.MILLISECONDS);
 
     Assert.assertThat(client.close.getCloseCode().getCode(),
         CoreMatchers.is(CloseReason.CloseCodes.UNEXPECTED_CONDITION.getCode()));