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

[IMPROVED] Fixed flaky tests in js.Subscribe() and kv #1374

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Conversation

piotrpio
Copy link
Collaborator

This PR fixes 2 frequent flaky tests:

  • TestJetStreamSubscribe_AckPolicy() - in this test sub.Drain() was executed before getting consumer info. Even though nats.Durable() option was used in Subscribe(), the consumer is still deleted if created by library
  • TestKeyValueMirrorCrossDomains() - there were races in this test and it sometimes failed if values were not propagated to the mirror before attempting to get them

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@piotrpio piotrpio requested a review from wallyqs August 22, 2023 17:03
Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wallyqs wallyqs merged commit 17cbdb8 into main Aug 22, 2023
2 checks passed
@wallyqs wallyqs deleted the fix-flakes branch August 22, 2023 19:03
@piotrpio piotrpio mentioned this pull request Sep 13, 2023
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.

None yet

2 participants