This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 1f1bffadb99 Fix flaky test
1f1bffadb99 is described below
commit 1f1bffadb997d5eab044cdf4c2cdfa71a86b22bb
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Aug 9 06:57:17 2023 +0200
Fix flaky test
---
.../src/test/java/org/apache/camel/language/simple/SimpleTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleTest.java
b/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleTest.java
index ed298ab77a3..eff32549d7e 100644
---
a/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleTest.java
+++
b/core/camel-core/src/test/java/org/apache/camel/language/simple/SimpleTest.java
@@ -663,7 +663,8 @@ public class SimpleTest extends LanguageTestSupport {
@Test
public void testDatePredicates() throws Exception {
assertPredicate("${date:now} < ${date:now+60s}");
- assertPredicate("${date:now-2s+2s} == ${date:now}");
+ assertPredicate("${date:now-5s} < ${date:now}");
+ assertPredicate("${date:now+5s} > ${date:now}");
}
@Test