You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/08/25 11:32:53 UTC
[camel] 02/02: (chores) camel-chatscript: fixed tests failures due to test-infra changes
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit acf10b75c63904e0833edcd7dbd0bea799f6f621
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Aug 25 09:16:06 2022 +0200
(chores) camel-chatscript: fixed tests failures due to test-infra changes
- adjust test timeout to avoid false negatives
- adjust lifecycle due to test-infra changes
---
.../java/org/apache/camel/component/ChatScriptComponentIT.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/camel-chatscript/src/test/java/org/apache/camel/component/ChatScriptComponentIT.java b/components/camel-chatscript/src/test/java/org/apache/camel/component/ChatScriptComponentIT.java
index e52f077ce29..8fdfcdbfc5c 100644
--- a/components/camel-chatscript/src/test/java/org/apache/camel/component/ChatScriptComponentIT.java
+++ b/components/camel-chatscript/src/test/java/org/apache/camel/component/ChatScriptComponentIT.java
@@ -34,16 +34,16 @@ import org.slf4j.LoggerFactory;
import org.testcontainers.shaded.org.awaitility.Awaitility;
public class ChatScriptComponentIT extends CamelTestSupport {
- @RegisterExtension
- static ChatScriptService service = ChatScriptServiceFactory.createService();
-
private static final Logger LOG = LoggerFactory.getLogger(ChatScriptComponentIT.class);
+ @RegisterExtension
+ public ChatScriptService service = ChatScriptServiceFactory.createService();
+
@Test
public void testChatScript() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedMinimumMessageCount(1);
- Awaitility.await().atMost(Duration.ofMillis(100)).untilAsserted(() -> assertMockEndpointsSatisfied());
+ Awaitility.await().atMost(Duration.ofSeconds(2)).untilAsserted(() -> assertMockEndpointsSatisfied());
}
@Override