Skip to content

Commit 3004523

Browse files
authored
PYTHON-4439 Use environment variable to detect dataLake test (#1637)
1 parent da03da3 commit 3004523

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,7 @@ def _init_client(self):
352352
if self.client is not None:
353353
# Return early when connected to dataLake as mongohoused does not
354354
# support the getCmdLineOpts command and is tested without TLS.
355-
build_info: Any = self.client.admin.command("buildInfo")
356-
if "dataLake" in build_info:
355+
if os.environ.get("TEST_DATA_LAKE"):
357356
self.is_data_lake = True
358357
self.auth_enabled = True
359358
self.client = self._connect(host, port, username=db_user, password=db_pwd)

0 commit comments

Comments
 (0)