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/11/09 14:41:06 UTC

[camel] branch main updated: CAMEL-18608: fixed not skipping resume files in test

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 0d8fc626030 CAMEL-18608: fixed not skipping resume files in test
0d8fc626030 is described below

commit 0d8fc62603092f6ebeeaf27a06f70598daf4963f
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Nov 9 13:49:33 2022 +0100

    CAMEL-18608: fixed not skipping resume files in test
---
 .../apache/camel/component/file/FileConsumerResumeStrategyTest.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerResumeStrategyTest.java b/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerResumeStrategyTest.java
index 3ce479cc2c0..5208359f7fb 100644
--- a/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerResumeStrategyTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/component/file/FileConsumerResumeStrategyTest.java
@@ -31,11 +31,9 @@ import org.apache.camel.processor.resume.TransientResumeStrategy;
 import org.apache.camel.support.resume.Resumables;
 import org.junit.jupiter.api.DisplayName;
 import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
 
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
-@DisabledIfSystemProperty(named = "ci.env.name", matches = "apache.org", disabledReason = "Always fails on Apache CI")
 @DisplayName("Tests whether file consumer works with the resume strategy")
 public class FileConsumerResumeStrategyTest extends ContextTestSupport {
 
@@ -51,7 +49,7 @@ public class FileConsumerResumeStrategyTest extends ContextTestSupport {
         @Override
         public boolean resume(File file) {
             resumedCalled = true;
-            return processedFiles.contains(file);
+            return processedFiles.contains(file.getName());
         }
     }