@@ -72,7 +72,7 @@ public void testPublishAndSubscribe() throws InterruptedException {
7272
7373 eventBus .publish ("test-address" , body , headers );
7474
75- boolean completed = latch .await (2 , TimeUnit .SECONDS );
75+ boolean completed = latch .await (5 , TimeUnit .SECONDS );
7676 assertThat (completed ).isTrue ();
7777
7878 assertThat (messages ).hasSize (2 );
@@ -99,7 +99,7 @@ public void testSendAndSubscribe() throws InterruptedException {
9999 eventBus .send ("test-address" , body , headers );
100100 eventBus .send ("test-address" , body );
101101
102- boolean completed = latch .await (2 , TimeUnit .SECONDS );
102+ boolean completed = latch .await (5 , TimeUnit .SECONDS );
103103 assertThat (completed ).isTrue ();
104104
105105 assertThat (messages ).hasSize (2 );
@@ -127,7 +127,7 @@ public void testSendMessageWithReply() throws InterruptedException {
127127 });
128128 });
129129
130- boolean sent = latch .await (2 , TimeUnit .SECONDS );
130+ boolean sent = latch .await (5 , TimeUnit .SECONDS );
131131 assertThat (sent ).isTrue ();
132132 assertThat (messages .size ()).isEqualTo (messageBodies .size ());
133133
@@ -166,7 +166,7 @@ public void testSubscribeAndThrowError() throws InterruptedException {
166166 }));
167167 eventBus .send ("test-address" , body );
168168
169- assertThat (latch .await (1 , TimeUnit .SECONDS )).isTrue ();
169+ assertThat (latch .await (5 , TimeUnit .SECONDS )).isTrue ();
170170
171171 assertThat (messages ).hasSize (2 );
172172 messages .forEach (message -> assertThat (message .getBody ()).isEqualTo ("test-address-" + body ));
@@ -187,13 +187,13 @@ public void testSubscribeAndUnsubscribe() throws InterruptedException {
187187 eventBus .registerHandler ("test-address-publish-reply" , messageHandler );
188188 eventBus .publish ("test-address" , "testing" );
189189
190- boolean sent = latch .await (1 , TimeUnit .SECONDS );
190+ boolean sent = latch .await (5 , TimeUnit .SECONDS );
191191 assertThat (sent ).isFalse ();
192192
193193 eventBus .unregisterHandler ("test-address-publish-reply" , messageHandler );
194194 eventBus .publish ("test-address" , "testing" );
195195
196- sent = latch .await (1 , TimeUnit .SECONDS );
196+ sent = latch .await (5 , TimeUnit .SECONDS );
197197 assertThat (sent ).isFalse ();
198198
199199 assertThat (messages ).hasSize (1 );
0 commit comments