Test Case 2 and 4 for test spec "mongoclient" are failing

Any reason why test 2 and 4 are failing while test 1 and 3 are passing below.

The only difference that I see while comparing the passing and failing tests is that the failing tests are also using connectTimeoutMS: 200, retryWrites: true, useNewUrlParser: true for the connection, whereas the passing tests are not using these parameters…

Strange… but changing the connectTimeoutMS parameter from 200 to 500 worked, and has passed all the 4 tests…

1 Like