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 2023/12/14 20:49:09 UTC
(camel) branch main updated: (chores) camel-core: disable flaky tests on GH actions (#12454)
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
The following commit(s) were added to refs/heads/main by this push:
new 53b8b62ac0e (chores) camel-core: disable flaky tests on GH actions (#12454)
53b8b62ac0e is described below
commit 53b8b62ac0ece8ec56c7400bfc90f8380387662f
Author: Otavio Rodolfo Piske <or...@users.noreply.github.com>
AuthorDate: Thu Dec 14 17:49:03 2023 -0300
(chores) camel-core: disable flaky tests on GH actions (#12454)
---
.../org/apache/camel/component/file/FileConsumerMoveFailureTest.java | 2 ++
.../src/test/java/org/apache/camel/support/DefaultTimeoutMapTest.java | 2 ++
2 files changed, 4 insertions(+)
diff --git a/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerMoveFailureTest.java b/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerMoveFailureTest.java
index 68f92945cc6..78e2d57c0fd 100644
--- a/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerMoveFailureTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerMoveFailureTest.java
@@ -22,7 +22,9 @@ import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
+@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com", disabledReason = "Flaky on Github CI")
public class FileConsumerMoveFailureTest extends ContextTestSupport {
@Test
diff --git a/core/camel-core/src/test/java/org/apache/camel/support/DefaultTimeoutMapTest.java b/core/camel-core/src/test/java/org/apache/camel/support/DefaultTimeoutMapTest.java
index 682bbf96103..6f04a5852af 100644
--- a/core/camel-core/src/test/java/org/apache/camel/support/DefaultTimeoutMapTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/support/DefaultTimeoutMapTest.java
@@ -26,12 +26,14 @@ import java.util.concurrent.TimeUnit;
import org.apache.camel.TimeoutMap;
import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.awaitility.Awaitility.await;
import static org.junit.jupiter.api.Assertions.*;
+@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com", disabledReason = "Flaky on Github CI")
public class DefaultTimeoutMapTest {
private static final Logger LOG = LoggerFactory.getLogger(DefaultTimeoutMapTest.class);