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

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new c7bc93814a Fixed flaky aws2 cw test with real service
c7bc93814a is described below

commit c7bc93814aa6786daca20f1bc7cd1c7430edddd2
Author: JiriOndrusek <ondrusek.j...@gmail.com>
AuthorDate: Mon Jun 10 10:02:00 2024 +0200

    Fixed flaky aws2 cw test with real service
---
 .../org/apache/camel/quarkus/component/aws2/cw/it/Aws2CwTest.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/integration-test-groups/aws2/aws2-cw/src/test/java/org/apache/camel/quarkus/component/aws2/cw/it/Aws2CwTest.java
 
b/integration-test-groups/aws2/aws2-cw/src/test/java/org/apache/camel/quarkus/component/aws2/cw/it/Aws2CwTest.java
index f1eba98918..2b2bb26697 100644
--- 
a/integration-test-groups/aws2/aws2-cw/src/test/java/org/apache/camel/quarkus/component/aws2/cw/it/Aws2CwTest.java
+++ 
b/integration-test-groups/aws2/aws2-cw/src/test/java/org/apache/camel/quarkus/component/aws2/cw/it/Aws2CwTest.java
@@ -228,15 +228,17 @@ class Aws2CwTest extends BaseAWs2TestSupport {
                     if (!(oddDp.sampleCount().intValue() == 2
                             && oddDp.minimum().intValue() == 2 * value + 1
                             && oddDp.maximum().intValue() == 2 * value + 3)) {
-                        throw new RuntimeException("Unexpected odd datapoint " 
+ oddDp
+                        LOG.warn("Unexpected odd datapoint " + oddDp
                                 + "; expected sampleCount == 2 && minimum ~ " 
+ (2 * value + 1)
                                 + " && maximum ~ " + (2 * value + 3));
+                        return false;
                     }
 
                     if (!(evenDp.average() == 2 * value + 2
                             && evenDp.sampleCount() == 3)) {
-                        throw new RuntimeException("Unexpected even datapoint 
" + evenDp
+                        LOG.warn("Unexpected even datapoint " + evenDp
                                 + "; expected sampleCount == 3 && average == " 
+ (2 * value + 2));
+                        return false;
                     }
 
                     return true;

Reply via email to