You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zh...@apache.org on 2024/06/11 01:18:16 UTC

(camel-quarkus) branch 3.8.x updated: Fixed flaky aws2 cw test with real service (#6174)

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

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


The following commit(s) were added to refs/heads/3.8.x by this push:
     new d03525f72b Fixed flaky aws2 cw test with real service (#6174)
d03525f72b is described below

commit d03525f72b513f09e4fec5a6cebd164cfc6434f0
Author: JiriOndrusek <on...@gmail.com>
AuthorDate: Tue Jun 11 03:18:10 2024 +0200

    Fixed flaky aws2 cw test with real service (#6174)
---
 .../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;