Details
Description
The ReplSetTest.restart() command attempts to re-authenticate any restarted connections. This conflicts with the waitForConnect: false flag since the connection will not be available in that case. The restart() method should not attempt to re-authenticate when waitForConnect: false is specified.