I’ve got an integration test on my (node.js) app that is checking the correct behaviour in case the connection to the db is not available.
It simply tries to connect to the machine where the db is running, but on a invalid port.
Before adding the useUnifiedTopology (set to true) on the connection options, the test works as expected, I was able to get the MongoNetworkError and drive the app correctly.
With the useUnifiedTopology option, the test failed because I reach the jest timeout.
node --version is v13.8.0
mongodb driver version is 3.5.5