-
Couldn't load subscription status.
- Fork 1.4k
fix: Flaky broadcastDynamic tests (#9555) #9557
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
Conversation
| )(implicit trace: Trace): ZIO[R with Scope, Nothing, Chunk[Dequeue[Take[E, A]]]] = | ||
| for { | ||
| hub <- Hub.bounded[Take[E, A]](maximumLag) | ||
| hub <- ZIO.acquireRelease(Hub.bounded[Take[E, A]](maximumLag))(_.shutdown) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can tell, broadcastDynamic doesn't use this method (It uses broadcastedQueuesDynamic below)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true, but that's part of the test suite which is right before the test suite broadcastDynamic. I imagine we need to close the Hub just like we close it in out test suite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are totally right, this has nothing to do with the point of the issue. I just removed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! Can you also please annotate the broadcastDynamic suite with @@ nonFlaky to make sure we don't run into the same issue if anyone else changes the code in the future?
| } yield assertTrue(cleaned) | ||
| } | ||
| ) @@ TestAspect.timeout(5.seconds) @@ flaky, | ||
| ) @@ TestAspect.timeout(5.seconds), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add @@ nonFlaky as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR fix Issue #9555 by
It makes now even more sense to change the signature of the function
broadcastDynamicas you mention in previous issue #9474