File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1412,6 +1412,12 @@ def _check_ocsp_response_cache_server(
14121412
14131413 def _lazy_read_ca_bundle (self ) -> None :
14141414 """Reads the local cabundle file and cache it in memory."""
1415+ if type (self ._root_certs_dict_lock_timeout ) is not int :
1416+ logger .warning (
1417+ "_root_certs_dict_lock_timeout is not an integer. %s" ,
1418+ self ._root_certs_dict_lock_timeout ,
1419+ )
1420+
14151421 SnowflakeOCSP .ROOT_CERTIFICATES_DICT_LOCK .acquire (
14161422 timeout = self ._root_certs_dict_lock_timeout
14171423 )
Original file line number Diff line number Diff line change 11from os import path
2- from unittest .mock import MagicMock , patch
2+ from unittest .mock import MagicMock
33
44try :
55 from snowflake .connector import SnowflakeConnection
2424megabyte = 1024 * 1024
2525
2626
27- @patch (
28- "snowflake.connector.ssl_wrap_socket.FEATURE_ROOT_CERTS_DICT_LOCK_TIMEOUT" , new = - 1
29- )
3027def test_status_when_num_of_chunks_is_zero ():
3128 meta_info = {
3229 "name" : "data1.txt.gz" ,
You can’t perform that action at this time.
0 commit comments