-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
Also, the tests have been blocked for almost 2 h now. |
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.