Skip to content

Commit 7f447c8

Browse files
committed
fix tests
1 parent 997260f commit 7f447c8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/asynchronous/test_discovery_and_monitoring.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ async def create_mock_topology(uri, monitor_class=DummyMonitor):
7878
load_balanced = None
7979
if "replicaset" in parsed_uri["options"]:
8080
replica_set_name = parsed_uri["options"]["replicaset"]
81-
if "directAsyncConnection" in parsed_uri["options"]:
82-
direct_connection = parsed_uri["options"]["directAsyncConnection"]
81+
if "directConnection" in parsed_uri["options"]:
82+
direct_connection = parsed_uri["options"]["directConnection"]
8383
if "loadBalanced" in parsed_uri["options"]:
8484
load_balanced = parsed_uri["options"]["loadBalanced"]
8585

@@ -216,6 +216,8 @@ async def run_scenario(self):
216216
for i, phase in enumerate(scenario_def["phases"]):
217217
# Including the phase description makes failures easier to debug.
218218
description = phase.get("description", str(i))
219+
if self._testMethodName == "test_single_direct_connection_external_ip":
220+
print("here")
219221
with assertion_context(f"phase: {description}"):
220222
for response in phase.get("responses", []):
221223
await got_hello(c, common.partition_node(response[0]), response[1])

test/test_discovery_and_monitoring.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ def run_scenario(self):
215215
for i, phase in enumerate(scenario_def["phases"]):
216216
# Including the phase description makes failures easier to debug.
217217
description = phase.get("description", str(i))
218+
if self._testMethodName == "test_single_direct_connection_external_ip":
219+
print("here")
218220
with assertion_context(f"phase: {description}"):
219221
for response in phase.get("responses", []):
220222
got_hello(c, common.partition_node(response[0]), response[1])

0 commit comments

Comments
 (0)