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

Improve test coverage of container runtime strategies #627

Merged
merged 5 commits into from
Aug 7, 2023

Conversation

cristianrgreco
Copy link
Collaborator

No description provided.

@netlify
Copy link

netlify bot commented Aug 5, 2023

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 9020cbf
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/64d0ac80af85d6000813fea5
😎 Deploy Preview https://deploy-preview-627--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cristianrgreco cristianrgreco added maintenance Improvements that do not change functionality patch Backward compatible bug fix labels Aug 5, 2023
@cristianrgreco cristianrgreco self-assigned this Aug 5, 2023
@cristianrgreco cristianrgreco changed the title Improve test coverage Improve test coverage of container runtime strategies Aug 7, 2023
@cristianrgreco cristianrgreco marked this pull request as ready for review August 7, 2023 12:02
@cristianrgreco cristianrgreco merged commit 8f93fce into main Aug 7, 2023
24 checks passed
@cristianrgreco cristianrgreco deleted the improve-client-strategies-test-coverage branch August 7, 2023 12:02
getName(): string {
return "NpipeSocketStrategy";
}

async getResult(): Promise<ContainerRuntimeClientStrategyResult | undefined> {
if (process.platform !== "win32") {
if (this.env.platform !== "win32") {

Choose a reason for hiding this comment

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

@cristianrgreco May I ask why this changed from process.platform to this.env.platform since the platform value is in the process object itself and not in the process.env. I believe this cause testcontainers to never find runtime strategy on docker windows unless we set the platform env manually.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for this @thenglong, you are correct it's an issue. I will release a patch shortly..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Improvements that do not change functionality patch Backward compatible bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants