You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/04/01 08:57:14 UTC

[camel] 02/04: Flaky test

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

commit c0c68294033fb52e45d586bb3da43aff9ee490fa
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Apr 1 10:31:52 2023 +0200

    Flaky test
---
 .../file/strategy/MarkerFileExclusiveReadLockStrategyTest.java          | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyTest.java b/core/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyTest.java
index ab1d7acf54c..8c1c46beb8f 100644
--- a/core/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyTest.java
+++ b/core/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyTest.java
@@ -59,12 +59,14 @@ public class MarkerFileExclusiveReadLockStrategyTest extends ContextTestSupport
 
         String content = new String(Files.readAllBytes(testFile("out/file1.dat")));
         String[] lines = content.split(LS);
+        assertEquals(20, lines.length);
         for (int i = 0; i < 20; i++) {
             assertEquals("Line " + i, lines[i]);
         }
 
         content = new String(Files.readAllBytes(testFile("out/file2.dat")));
         lines = content.split(LS);
+        assertEquals(20, lines.length);
         for (int i = 0; i < 20; i++) {
             assertEquals("Line " + i, lines[i]);
         }