Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure subscription startup for restartAfterRequestTimerExpires tests #1084

Merged
merged 6 commits into from
Mar 24, 2023

Conversation

furq-aws
Copy link
Contributor

@furq-aws furq-aws commented Mar 22, 2023

Issue #, if available:
N/A

Description of changes:
Add wait to allow subscriptions to start.
This eliminates flakiness of tests restartAfterRequestTimerExpiresWhenNotGettingRecordsAfterInitialization and restartAfterRequestTimerExpiresWhenInitialTaskExecutionIsRejected.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…itialization test

Add wait to allow RecordPublisherWithInitialFailureSubscription to start.
…tialization wait time

increase the added wait time to avoid testing failures on slow machines
@furq-aws furq-aws added the v2.x Issues related to the 2.x version label Mar 22, 2023
@furq-aws furq-aws changed the title Fix flaky restartAfterRequestTimerExpiresWhenNotGettingRecordsAfterInitialization test Fix flaky restartAfterRequestTimerExpires tests Mar 23, 2023
Remove startSubscriptionsAndWait ShardConsumerSubscriber parameter to use class variable instead.
Create constant for default notifier timeout value.
@chenylee-aws chenylee-aws marked this pull request as ready for review March 24, 2023 00:58
@furq-aws furq-aws merged commit b8d3390 into awslabs:master Mar 24, 2023
@furq-aws furq-aws deleted the shardconsumersubscriber-flakytest branch March 24, 2023 11:54
@furq-aws furq-aws changed the title Fix flaky restartAfterRequestTimerExpires tests Ensure subscription startup for restartAfterRequestTimerExpires tests Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.x Issues related to the 2.x version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants