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 c3484aede9d (chores) camel-core: prevent ThrottlerTest from running on 
GH
c3484aede9d is described below

commit c3484aede9d326db473ce45dec9148821d83cd1c
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Tue Jun 27 05:19:44 2023 +0200

    (chores) camel-core: prevent ThrottlerTest from running on GH
    
    This test is time-bound and that does not run well in shared environments
---
 .../src/test/java/org/apache/camel/processor/ThrottlerTest.java        | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/processor/ThrottlerTest.java 
b/core/camel-core/src/test/java/org/apache/camel/processor/ThrottlerTest.java
index 20cd688ddb4..b25f77941f1 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/processor/ThrottlerTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/processor/ThrottlerTest.java
@@ -24,12 +24,15 @@ import org.apache.camel.ContextTestSupport;
 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;
 import org.junit.jupiter.api.condition.DisabledOnOs;
 import org.junit.jupiter.api.condition.OS;
 
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
+// time-bound that does not run well in shared environments
 @DisabledOnOs(OS.WINDOWS)
+@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com", 
disabledReason = "Flaky on Github CI")
 public class ThrottlerTest extends ContextTestSupport {
     private static final int INTERVAL = 500;
     private static final int TOLERANCE = 50;

Reply via email to