Skip to content

Commit 1163ebe

Browse files
committed
fixes in test
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent f6f50b2 commit 1163ebe

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ def initialize_telemetry_client(
399399
host_url,
400400
):
401401
"""Initialize a telemetry client for a specific connection if telemetry is enabled"""
402-
403402
try:
404403
with TelemetryClientFactory._lock:
405404
TelemetryClientFactory._initialize()

tests/unit/test_telemetry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def test_export_event(self, telemetry_client_setup):
235235
client._flush.assert_not_called()
236236
assert len(client._events_batch) == 5
237237

238-
for i in range(5):
238+
for i in range(5, 10):
239239
client._export_event(f"event-{i}")
240240

241241
client._flush.assert_called_once()

0 commit comments

Comments
 (0)