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

Fix KafkaSourceCustomConsumerTest to use await() instead of Thread.sleep() #3358

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

kkondaka
Copy link
Collaborator

@kkondaka kkondaka commented Sep 18, 2023

Description

Fix KafkaSourceCustomConsumerTest to wait for shorter time and bail out as soon as possible instead of waiting for a fixed time.

This change replaces Thread.sleep(10000) with await() so that the overall wait time is less.

Resolves #3263

Issues Resolved

Resolves #3263

Check List

  • [X ] New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • [ X] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Krishna Kondaka <[email protected]>
@kkondaka kkondaka merged commit b5ecfe8 into opensearch-project:main Sep 19, 2023
23 of 24 checks passed
asifsmohammed pushed a commit to asifsmohammed/data-prepper that referenced this pull request Sep 27, 2023
Signed-off-by: Krishna Kondaka <[email protected]>
Co-authored-by: Krishna Kondaka <[email protected]>
@kkondaka kkondaka deleted the test-fix branch May 13, 2024 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Unit Test] Remove sleeps from KafkaSourceCustomConsumerTest
2 participants