This is an automated email from the ASF dual-hosted git repository.

apupier 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 1c6f6dc350cd Fix MilvusComponentIT flakiness
1c6f6dc350cd is described below

commit 1c6f6dc350cdbd48ab10c9c1364a7affe681aeab
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Fri Jul 24 16:36:08 2026 +0200

    Fix MilvusComponentIT flakiness
    
    random integer were generated between 0 and 99 and it was checking for >
    0 , so it was failing every time it was generating with 0
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .../java/org/apache/camel/component/milvus/it/MilvusComponentIT.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-ai/camel-milvus/src/test/java/org/apache/camel/component/milvus/it/MilvusComponentIT.java
 
b/components/camel-ai/camel-milvus/src/test/java/org/apache/camel/component/milvus/it/MilvusComponentIT.java
index 9213d899b16b..ddcad1178dec 100644
--- 
a/components/camel-ai/camel-milvus/src/test/java/org/apache/camel/component/milvus/it/MilvusComponentIT.java
+++ 
b/components/camel-ai/camel-milvus/src/test/java/org/apache/camel/component/milvus/it/MilvusComponentIT.java
@@ -143,7 +143,7 @@ public class MilvusComponentIT extends MilvusTestSupport {
         Random ran = new Random();
         List<Integer> ages = new ArrayList<>();
         for (long i = 0L; i < 2; ++i) {
-            ages.add(ran.nextInt(99));
+            ages.add(ran.nextInt(1, 99));
         }
         List<InsertParam.Field> fields = new ArrayList<>();
         fields.add(new InsertParam.Field("userAge", ages));
@@ -170,7 +170,7 @@ public class MilvusComponentIT extends MilvusTestSupport {
         Random ran = new Random();
         List<Integer> ages = new ArrayList<>();
         for (long i = 0L; i < 2; ++i) {
-            ages.add(ran.nextInt(99));
+            ages.add(ran.nextInt(1, 99));
         }
         List<UpsertParam.Field> fields = new ArrayList<>();
         fields.add(new UpsertParam.Field("userAge", ages));

Reply via email to