diff --git a/test/__init__.py b/test/__init__.py index 1a17ff14c5..af12bc032a 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -313,7 +313,7 @@ def _init_client(self): params = self.cmd_line["parsed"].get("setParameter", {}) if params.get("enableTestCommands") == "1": self.test_commands_enabled = True - self.has_ipv6 = self._server_started_with_ipv6() + self.has_ipv6 = self._server_started_with_ipv6() self.is_mongos = (self.hello).get("msg") == "isdbgrid" if self.is_mongos: diff --git a/test/asynchronous/__init__.py b/test/asynchronous/__init__.py index 0d94331587..2a44785b2f 100644 --- a/test/asynchronous/__init__.py +++ b/test/asynchronous/__init__.py @@ -313,7 +313,7 @@ async def _init_client(self): params = self.cmd_line["parsed"].get("setParameter", {}) if params.get("enableTestCommands") == "1": self.test_commands_enabled = True - self.has_ipv6 = await self._server_started_with_ipv6() + self.has_ipv6 = await self._server_started_with_ipv6() self.is_mongos = (await self.hello).get("msg") == "isdbgrid" if self.is_mongos: