Comments (5)
@mborman I had the same issue. --fork is a documented feature for platforms that supports fork
for process spawning. Unfortunately problem is on the mongodb-prebuilt dependency which uses spawnSync
to launch mongod. spawnSync is a polyfill for child_process.spawnSync (https://nodejs.org/api/child_process.html#child_process_synchronous_process_creation). As a sync call it blocks the node event loop until the launched process exits (and this seems the reason why they use --fork).
So, with mongodb-js/mongodb-prebuilt#25 and #204 I'm able to pass the tests.
Let me know if it works for you too
from mockgoose.
@mborman Added #212 to fix #204 too.
from mockgoose.
Hi @pibi is there any chance to merge it? I run into the same issue on windows. thank you.
from mockgoose.
Hi all, October 11, this problem still happen 😆
from mockgoose.
Hello, I am not monitoring this project anymore, please resubmit it under mockgoose/mockgoose if this is still an issue with new 7.x release
from mockgoose.
Related Issues (20)
- mockgoose.reset() removes previously added data, mongoose.unmock() does nothing HOT 3
- gruntfile missing? HOT 4
- mockgoose will eat the error message of `Error: Cannot find module '../test/util.js' from `require()` in `mocha 2.4.5` HOT 1
- Error with ava: TypeError: callback is not a function HOT 26
- Uncaught TypeError: Object #<Object> has no method 'spawnSync' HOT 3
- Upgrading from v5 to v6 breaks create function HOT 2
- EventEmitter leak on mongoose disconnection HOT 2
- mongod process does not stop in a dockerized jenkins container HOT 2
- mockgoose-mongoose4 problem with $or HOT 15
- mockgoose(mongoose).then is not a function HOT 2
- Error running mocha test HOT 10
- unmock not working when using createConnection HOT 1
- Project migrated HOT 5
- Mockgoose can not install due to issue with mongodb_prebuilt HOT 3
- Gives MongoError if mongod is not running locally HOT 1
- Mockgoose.reset throws error with createConnection HOT 3
- Compound index not working HOT 2
- Subdocuments not returned when using projection with Mockgoose HOT 1
- Raspberry pi support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockgoose.