-
Type: Task
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: CSOT
Use Case
As a driver engineer,
I want testing to ensure that server selection / connection checkout hold the event loop open until the client has connected,
So that the process does not exit if there's no additional work happening when client.connect() is called.
User Impact
- n/a - testing only
Dependencies
- n/a
Unknowns
- n/a
Acceptance Criteria
Implementation Requirements
- add a test that confirms that the process does not exit when attempting to connect to a non-existent server and that server selection rejects instead.
- We can use `process.on('beforeExit')` to determine that a process is about to exit
Testing Requirements
- n/a
Documentation Requirements
- n/a
Follow Up Requirements
- n/a
- related to
-
NODE-6151 MongoClient connect does not keep Node.js running
- Closed