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

fixtures: in-memory queues are not cleared #99

Open
mdonadoni opened this issue May 4, 2022 · 0 comments
Open

fixtures: in-memory queues are not cleared #99

mdonadoni opened this issue May 4, 2022 · 0 comments

Comments

@mdonadoni
Copy link
Member

mdonadoni commented May 4, 2022

if in-memory queues are not cleared tests fail.

The test fails for both MessageConsumer and scheduler. This is probably due to in_memory_queue_connection having a "session" scope. It means some messages can stay in the queue between tests and cause unexpected failures.

As for now, I solved it by cleaning messages at the end of each test. But, this is not a sustainable solution. It is not nice when you need to remember to clear stuff after the test. I propose to create an issue to address later.

Originally posted by @VMois in reanahub/reana-server#487 (comment)

@mdonadoni mdonadoni changed the title fixture: in-memory queues are not cleared fixtures: in-memory queues are not cleared May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant