You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2022/10/18 12:35:09 UTC

[tomee] branch main updated: See if we can get ride of random failures for JWT itests

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

jlmonteiro pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/main by this push:
     new 6da5cbc6a5 See if we can get ride of random failures for JWT itests
6da5cbc6a5 is described below

commit 6da5cbc6a59f7cad9424d11378eb19d89d9b3696
Author: Jean-Louis Monteiro <jl...@tomitribe.com>
AuthorDate: Tue Oct 18 14:34:54 2022 +0200

    See if we can get ride of random failures for JWT itests
---
 .../java/org/apache/tomee/microprofile/jwt/itest/ShaHashSizesTest.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/itests/microprofile-jwt-itests/src/test/java/org/apache/tomee/microprofile/jwt/itest/ShaHashSizesTest.java b/itests/microprofile-jwt-itests/src/test/java/org/apache/tomee/microprofile/jwt/itest/ShaHashSizesTest.java
index 7b26a3b715..4cd0f5cefc 100644
--- a/itests/microprofile-jwt-itests/src/test/java/org/apache/tomee/microprofile/jwt/itest/ShaHashSizesTest.java
+++ b/itests/microprofile-jwt-itests/src/test/java/org/apache/tomee/microprofile/jwt/itest/ShaHashSizesTest.java
@@ -39,6 +39,7 @@ import jakarta.ws.rs.core.Response;
 import java.io.File;
 import java.net.URL;
 import java.util.Base64;
+import java.util.concurrent.TimeUnit;
 
 import static java.util.Collections.singletonList;
 import static org.junit.Assert.assertEquals;
@@ -72,6 +73,7 @@ public class ShaHashSizesTest {
         final TomEE tomee = TomEE.microprofile()
                 .add("webapps/test/WEB-INF/beans.xml", "")
                 .add("webapps/test/WEB-INF/lib/app.jar", appJar)
+            .await(2, TimeUnit.MINUTES) // Jenkins CI instances are 12 years old machines and they are slow sometimes
 //                .update()
                 .build();