Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

use db.getSiblingDB in mongo create.js - #6731

Merged
NateBrady23 merged 1 commit into
TechEmpower:masterfrom
snowbldr:getSiblingDb
Aug 5, 2021
Merged

NateBrady23 merged 1 commit into
TechEmpower:masterfrom
snowbldr:getSiblingDb

Conversation

@snowbldr

Copy link
Copy Markdown
Contributor

When running mongodb.dockerfile locally on windows, I noticed that it was creating a database named test instead of hello_world which caused all of the validations to fail when run.

I changed the create.js script to use db.getSiblingDb("hello_world") instead of use hello_world and that resolved the issue. This should work identically in all cases where it was already working.

https://docs.mongodb.com/manual/reference/method/db.getSiblingDB/

…lways work correctly (does not work on windows 10)
@snowbldr

snowbldr commented Jul 29, 2021 •

Copy link
Copy Markdown
Contributor Author

I don't think this will ever pass CI, but several mongo implementations succeeded with no issue.

@NateBrady23
NateBrady23 merged commit 8d05f5a into TechEmpower:master Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants