Skip to content

Commit a9d40f6

Browse files
committed
Fix socket timeout test
Signed-off-by: Matthew Kim <[email protected]>
1 parent 5379803 commit a9d40f6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 2.6.x (Unreleased)
44

5+
- Fix: test_socket_timeout_user_defined e2e test
6+
57
## 2.6.1 (2023-06-08)
68

79
- Fix: http.client would raise a BadStatusLine exception in some cases

tests/e2e/driver_tests.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import pytz
1717
import thrift
1818
import pytest
19+
from urllib3.connectionpool import ReadTimeoutError
1920

2021
import databricks.sql as sql
2122
from databricks.sql import STRING, BINARY, NUMBER, DATETIME, DATE, DatabaseError, Error, OperationalError, RequestError
@@ -477,7 +478,7 @@ def test_socket_timeout_user_defined(self):
477478
query = "select * from range(10000000)"
478479
cursor.execute(query)
479480

480-
self.assertIsInstance(cm.exception.args[1], TimeoutError)
481+
self.assertIsInstance(cm.exception.args[1], ReadTimeoutError)
481482

482483
def test_ssp_passthrough(self):
483484
for enable_ansi in (True, False):

0 commit comments

Comments
 (0)