mongodb-js / mongodb-prebuilt

Install MongoDB prebuilt package using npm https://npmjs.org/package/mongodb-prebuilt
ISC License
56 stars 50 forks source link

.run() doesn't return on WSL #37

Closed Christilut closed 7 years ago

Christilut commented 7 years ago

Came here from using Mockgoose. I'm running Windows 10 build 15063 with Windows Subsystem (WSL) for Linux enabled (Bash on Windows). Mongodb version set to 3.4.3.

When running my tests with mockgoose, the database connection to mongodb-prebuilt is getting a timeout. After testing some stuff, it appears that there is a problem with the temporary path at /tmp. When running the tests as root, it does work as expected.

So for now I'll run my tests as root but perhaps someone can take a look at this? It's not doubt to do with my specific WSL setup.

Christilut commented 7 years ago

Upgraded mockgoose to 7.3.0 which upgraded mongodb-prebuilt to 6.3.0 and I don't have this issue anymore.