orlandos-nl / MongoKitten

Native MongoDB driver for Swift, written in Swift
MIT License
717 stars 102 forks source link

Add a test case for SRV query race conditions #312

Open Obbut opened 1 year ago

Obbut commented 1 year ago

There is a fix for the issue described in #310 (in #311), but a test case catching this bug should still be added to the test suite.

This probably involves mocking the DNS lookup logic, so we can reliably simulate a slow SRV query.