-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Move default container configurations to constructor to allow for overriding #712
Conversation
✅ Deploy Preview for testcontainers-node ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -5,6 +5,8 @@ export const LOCALSTACK_PORT = 4566; | |||
export class LocalstackContainer extends GenericContainer { | |||
constructor(image = "localstack/localstack:2.2.0") { | |||
super(image); | |||
this.resolveHostname(); |
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.
@cristianrgreco This line should not have been moved. There is no way to provide an environment before the constructor is called so resolveHostname
will never resolve LOCALSTACK_HOST
Observation: No tests were affected by these changes, indicating that this functionality is not currently tested. |
Fixes #711