-
-
Notifications
You must be signed in to change notification settings - Fork 526
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: Amqps function returns amqps url instead of amqp url #2458
fix: Amqps function returns amqps url instead of amqp url #2458
Conversation
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Great catch!
@@ -48,7 +48,7 @@ func (c *RabbitMQContainer) AmqpURL(ctx context.Context) (string, error) { | |||
|
|||
// AmqpURL returns the URL for AMQPS clients. | |||
func (c *RabbitMQContainer) AmqpsURL(ctx context.Context) (string, error) { | |||
endpoint, err := c.PortEndpoint(ctx, nat.Port(DefaultAMQPPort), "") | |||
endpoint, err := c.PortEndpoint(ctx, nat.Port(DefaultAMQPSPort), "") |
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.
I'm happy you found this wrong copy&paste mistake 🤦
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.
LGTM, thanks!
I think this PR is colliding with #2462 but the latter include tests. I think I'll give priority to the one including tests once it passes the CI. |
Sure, I will close the PR :) |
What does this PR do?
Fixes the AmqpsURL function to return an AMQPS URL instead of AMQP URL.
Why is it important?
This fix is essential as it ensures that our tests accurately reflect real-world conditions by returning the correct AMQPS URL, thereby enhancing the reliability and effectiveness of our testing environment.
Related issues