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

return empty stream if topic is closed #3085

Merged
merged 5 commits into from
Dec 23, 2022
Merged

Conversation

Jasper-M
Copy link
Contributor

Closes #3083.

_ <- topic.subscribeUnbounded.compile.drain
} yield ()

program.timeout(5.seconds) // will timeout if program is deadlocked
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok thanks. executeEmbed does work. I tried execute with tickAll and isDeadlocked but that didn't work for me so I assumed executeEmbed would have the same problem, but apparently not... I'm probably misinterpreting what tickAll does then.

Copy link
Member

Choose a reason for hiding this comment

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

Comment on lines 184 to 185
program.timeout(5.seconds) // will timeout if program is deadlocked
TestControl.executeEmbed(program)
Copy link
Member

Choose a reason for hiding this comment

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

Thanks! I think the comment about testing for deadlock is still helpful.

Copy link
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

Subscribing to a closed Topic <-> Stream.never
3 participants