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

Add end to end tests for core/event processors #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

HeinKalido
Copy link
Contributor

@HeinKalido HeinKalido commented Jun 26, 2023

This adds end to end tests, using the libraries like core and match would.

This also adds some additional guarantees to the stopping of event processors (something we don't really use, but is important in tests).

Calling close will wait until all the event handlers are done before returning.

This also adds an example of how quorum queues would work in match.

Copy link
Contributor

@rjacobs31 rjacobs31 left a comment

Choose a reason for hiding this comment

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

One suggestion for ergonomics.

Exclusive: false,
RoutingKey: "path",
Args: map[string]interface{}{
"x-queue-type": "quorum",
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we want this as part of the QueueSettings type? It's easier to specify if you don't need to remember that specific key just to make it work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The interface reflects the rabbit API. We could change it, not sure that is better.
We should just really write a helper for this so we don't have it replicated so many times (and then no need to know that this is needed).

Copy link
Contributor

Choose a reason for hiding this comment

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

Not really, though. Take a look at exchange.go:322. There's precedent for having fields which don't map directly.

@rjacobs31
Copy link
Contributor

Also, the tests have been blocked for almost 2 h now.

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.

3 participants