This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 91df7da5bf1998e3803d7e0237e28055889b5c28 Author: Tung Tran <[email protected]> AuthorDate: Wed Jul 26 11:21:18 2023 +0700 Fix JMAP draft test - increase Duration of time waiting to start James server - Fix error: org.awaitility.core.ConditionTimeoutException: Lambda expression in org.apache.james.jmap.HttpJmapAuthentication that uses org.apache.http.client.utils.URIBuilder, org.apache.http.client.utils.URIBuilderorg.apache.james.core.Username, org.apache.james.core.Usernamejava.lang.String: expected ANYTHING but was null within 10 seconds. --- .../src/main/java/org/apache/james/jmap/HttpJmapAuthentication.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/testing/src/main/java/org/apache/james/jmap/HttpJmapAuthentication.java b/server/testing/src/main/java/org/apache/james/jmap/HttpJmapAuthentication.java index 79e14c9e3c..00fbc34b41 100644 --- a/server/testing/src/main/java/org/apache/james/jmap/HttpJmapAuthentication.java +++ b/server/testing/src/main/java/org/apache/james/jmap/HttpJmapAuthentication.java @@ -23,6 +23,7 @@ import static org.apache.james.jmap.JMAPTestingConstants.calmlyAwait; import java.io.IOException; import java.net.URISyntaxException; +import java.time.Duration; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.fluent.Request; @@ -37,7 +38,9 @@ import com.jayway.jsonpath.JsonPath; public class HttpJmapAuthentication { public static AccessToken authenticateJamesUser(URIBuilder uriBuilder, Username username, String password) { - return calmlyAwait.until( + return calmlyAwait + .atMost(Duration.ofMinutes(2)) + .until( () -> doAuthenticate(uriBuilder, username, password), IsAnything.anything()); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
