Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Add stop() and kill() methods to manage mongod #49

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

deployable
Copy link
Contributor

Mocha 4+ changed behaviour to "no longer force the process to exit once all tests complete"
so async tasks will keep the test run from completing, the prebuilt-mongod daemon is such a task

This adds helper functions to allow a test to finish

stop() will send a SIGINT to cleanly shutdown
kill() will send a SIGTERM

Fixes #38

Mocha 4+ changed behaviour to "no longer force the process to exit once all tests complete"
so async tasks will keep the test run from completing, the prebuilt-mongod daemon is such a task

This adds helper functions to allow a test to finish

`stop()` will send a `SIGINT` to cleanly shutdown
`kill()` will send a `SIGTERM`

Fixes mongodb-js#38
Copy link
Contributor

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

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

lgtm

@LoneRifle LoneRifle merged commit fcb2f56 into mongodb-js:master Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants