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 02f2969  Fix flaky test
02f2969 is described below

commit 02f2969082da7f35970c323101850be7518858ed
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Jun 8 08:53:09 2021 +0200

    Fix flaky test
---
 .../java/org/apache/camel/component/etcd/integration/EtcdWatchIT.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/integration/EtcdWatchIT.java
 
b/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/integration/EtcdWatchIT.java
index 08aa249..e7b5579 100644
--- 
a/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/integration/EtcdWatchIT.java
+++ 
b/components/camel-etcd/src/test/java/org/apache/camel/component/etcd/integration/EtcdWatchIT.java
@@ -84,10 +84,9 @@ public class EtcdWatchIT extends EtcdTestSupport {
         }
 
         MockEndpoint mock = getMockEndpoint(mockEndpoint);
-        mock.expectedMessageCount(2);
         mock.expectedHeaderReceived(EtcdConstants.ETCD_NAMESPACE, "watch");
         mock.expectedHeaderReceived(EtcdConstants.ETCD_PATH, key);
-        mock.expectedBodiesReceived(values);
+        mock.expectedBodiesReceivedInAnyOrder(values);
 
         final EtcdClient client = getClient();
         for (int i = 0; i < updates; i++) {

Reply via email to