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 c74f5aa78f08 chore: FileScanReloadTest - rewrite the route with a
different length so a same-millisecond save is still seen
c74f5aa78f08 is described below
commit c74f5aa78f08d039f14869d34f1339721bfcb788
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Sep 28 16:04:05 2026 +0200
chore: FileScanReloadTest - rewrite the route with a different length so a
same-millisecond save is still seen
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../src/test/java/org/apache/camel/support/FileScanReloadTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/core/camel-core/src/test/java/org/apache/camel/support/FileScanReloadTest.java
b/core/camel-core/src/test/java/org/apache/camel/support/FileScanReloadTest.java
index ee3c9e8505ce..349b90dcb930 100644
---
a/core/camel-core/src/test/java/org/apache/camel/support/FileScanReloadTest.java
+++
b/core/camel-core/src/test/java/org/apache/camel/support/FileScanReloadTest.java
@@ -71,8 +71,9 @@ public class FileScanReloadTest extends ContextTestSupport {
// nothing changed since
assertThat(scanNames()).isEmpty();
- // the save: a route and the property it uses, together
- Files.writeString(dir.resolve("shop.yaml"), "two");
+ // the save: a route and the property it uses, together. The route
changes length: written within the same
+ // millisecond as before, the modification time alone would not tell
them apart (that case has its own test)
+ Files.writeString(dir.resolve("shop.yaml"), "one and two");
Files.writeString(dir.resolve("application.properties"),
"shop.name=Camel Shop\nshop.currency=EUR");
// one scan, both files: the reload can apply the property before it
builds the route