Fix flaky restartAfterRequestTimerExpiresWhenNotGettingRecordsAfterInitialization test

Add wait to allow RecordPublisherWithInitialFailureSubscription to start.
This commit is contained in:
furq-aws 2023-03-22 14:01:08 -07:00
parent 0627ba50bb
commit d49b320c0c

View file

@ -339,6 +339,7 @@ public class ShardConsumerSubscriberTest {
// First try to start subscriptions.
synchronized (processedNotifier) {
subscriber.startSubscriptions();
processedNotifier.wait(10);
}
// Verifying that there are no interactions with shardConsumer mock indicating no records were sent back and