File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/test/java/com/rabbitmq/client/amqp/impl Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -212,11 +212,21 @@ void clusterRestart() {
212
212
LOGGER .info ("Checked replica info for each queue." );
213
213
214
214
syncs = publisherStates .stream ().map (s -> s .waitForNewMessages (10 )).collect (toList ());
215
- syncs .forEach (s -> assertThat (s ).completes ());
215
+ syncs .forEach (
216
+ s -> {
217
+ LOGGER .info ("Publishing messages ('{}')" , s );
218
+ assertThat (s ).completes ();
219
+ LOGGER .info ("Messages published and settled ('{}')" , s );
220
+ });
216
221
LOGGER .info ("Checked publishers have recovered." );
217
222
218
223
syncs = consumerStates .stream ().map (s -> s .waitForNewMessages (10 )).collect (toList ());
219
- syncs .forEach (s -> assertThat (s ).completes ());
224
+ syncs .forEach (
225
+ s -> {
226
+ LOGGER .info ("Waiting for new messages ('{}')" , s );
227
+ assertThat (s ).completes (Duration .ofSeconds (20 ));
228
+ LOGGER .info ("Expected messages received ('{}')" , s );
229
+ });
220
230
LOGGER .info ("Checked consumers have recovered." );
221
231
222
232
assertThat (publisherStates ).allMatch (s -> s .state () == OPEN );
You can’t perform that action at this time.
0 commit comments