Skip to content

Conversation

seriousme
Copy link
Contributor

This PR fixes a bug that I found whlle working on aedes-persistence-mongodb. I learned that when using aedes-cached-persistence (which builds on aedes-persistense) calls the _setup method of the persistence as soon as instance.broker is set. And as _setup emits the ready event, waiting for this event in abstract.js can only happen after setting instance.broker or else the wait will be forever.

This only touches abstract.js which is only used during testing of the various persistences.

Kind regards,
Hans

Copy link
Member

@robertsLando robertsLando left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! :) Sorry, I was on vacation :)

@robertsLando robertsLando merged commit acc9c16 into moscajs:main Mar 26, 2025
6 checks passed
@seriousme
Copy link
Contributor Author

LGTM, thanks! :) Sorry, I was on vacation :)

No worries, typing this from a holiday cottage right now :-)

@seriousme seriousme deleted the fix-on-ready branch March 26, 2025 14:39
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