Fix flaky restartAfterRequestTimerExpiresWhenNotGettingRecordsAfterInitialization test
Add wait to allow RecordPublisherWithInitialFailureSubscription to start.
This commit is contained in:
parent
0627ba50bb
commit
d49b320c0c
1 changed files with 1 additions and 0 deletions
|
|
@ -339,6 +339,7 @@ public class ShardConsumerSubscriberTest {
|
||||||
// First try to start subscriptions.
|
// First try to start subscriptions.
|
||||||
synchronized (processedNotifier) {
|
synchronized (processedNotifier) {
|
||||||
subscriber.startSubscriptions();
|
subscriber.startSubscriptions();
|
||||||
|
processedNotifier.wait(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verifying that there are no interactions with shardConsumer mock indicating no records were sent back and
|
// Verifying that there are no interactions with shardConsumer mock indicating no records were sent back and
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue