File tree 1 file changed +2
-0
lines changed
src/test/java/com/rabbitmq/client/amqp/impl
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ void publishConsumeQuorumQueueWhenLeaderChanges() {
266
266
String initialLeader = queueInfo ().leader ();
267
267
268
268
deleteQqMember (initialLeader );
269
+ waitAtMost (() -> !initialLeader .equals (queueInfo ().leader ()));
269
270
assertThat (queueInfo ()).doesNotHaveLeader (initialLeader );
270
271
271
272
publisher .publish (publisher .message ().messageId (2L ), ctx -> publishSync .down ());
@@ -343,6 +344,7 @@ void consumeFromQuorumQueueWhenLeaderIsPaused() {
343
344
assertThat (messageIds ).containsExactlyInAnyOrder (1L , 2L );
344
345
consumeSync .reset ();
345
346
347
+ waitAtMost (() -> initialFollowers .contains (mgmt .queueInfo (q ).leader ()));
346
348
assertThat (initialFollowers ).contains (mgmt .queueInfo (q ).leader ());
347
349
348
350
Cli .unpauseNode (initialLeader );
You can’t perform that action at this time.
0 commit comments