We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When calling await client.close();, the process still hangs.
await client.close();
When using a real mongo connection, the process is destroyed.
I can see this by running mocha tests that do not terminate when using the mock.
The text was updated successfully, but these errors were encountered:
What does your setup and teardown look like? Could you post an example of a test not terminating?
Sorry, something went wrong.
I ended up using mongodb-memory-server, so it will be harder for me to debug this now.
mongodb-memory-server
I was doing
const client = await MongoClient.connect( "mongodb://localhost:27017/myproject", { useNewUrlParser: true, useUnifiedTopology: true, } )
At the start, then calling await client.close() at the end of each transaction.
await client.close()
No branches or pull requests
When calling
await client.close();
, the process still hangs.When using a real mongo connection, the process is destroyed.
I can see this by running mocha tests that do not terminate when using the mock.
The text was updated successfully, but these errors were encountered: