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(rabbitmq): fix unawaited promises #674

Merged
merged 3 commits into from
Jan 16, 2024

Conversation

ttshivers
Copy link
Contributor

I noticed some floating promises in the code when trying to debug an issue due to ordering. Ensuring all the promises are awaited where expected should help prevent possible issues like ensureing the assertExchange is done before trying to bind a queue to it.

I noticed some floating promises in the code when trying to debug an issue due to ordering. Ensuring
all the promises are awaited where expected should help prevent possible issues like ensureing the
assertExchange is done before trying to bind a queue to it.
@underfisk
Copy link
Contributor

@ttshivers Thank you for this change! Would you be down to write some test coverage to assert what you're describing/what we're trying to accomplish here?

@ttshivers
Copy link
Contributor Author

@ttshivers Thank you for this change! Would you be down to write some test coverage to assert what you're describing/what we're trying to accomplish here?

I have written a test that fails before my fix and passes after my fix which exposes one of the race conditions that is possible by not awaiting the promises.

@ttshivers ttshivers force-pushed the fix/rabbitmq-promises branch 2 times, most recently from dc90d5a to 8ff8702 Compare January 16, 2024 05:01
Add test for race condition
@underfisk
Copy link
Contributor

@ttshivers could you update the branch and fix conflicts?

@ttshivers
Copy link
Contributor Author

ttshivers commented Jan 16, 2024

@ttshivers could you update the branch and fix conflicts?

I have resolved the conflicts

@underfisk underfisk merged commit 4b54afb into golevelup:master Jan 16, 2024
3 checks passed
@ttshivers ttshivers deleted the fix/rabbitmq-promises branch January 16, 2024 17:17
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.

2 participants