Skip to content

Commit c3179ad

Browse files
committed
patch OCSP cert dict timeout in wiremock tests
1 parent e71c036 commit c3179ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/unit/test_wiremock_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from typing import Any, Generator
2+
from unittest.mock import patch
23

34
import pytest
45

@@ -19,6 +20,9 @@ def wiremock_client() -> Generator[WiremockClient, Any, None]:
1920
yield client
2021

2122

23+
@patch(
24+
"snowflake.connector.ssl_wrap_socket.FEATURE_ROOT_CERTS_DICT_LOCK_TIMEOUT", new=-1
25+
)
2226
def test_wiremock(wiremock_client):
2327
connection_reset_by_peer_mapping = {
2428
"mappings": [

0 commit comments

Comments
 (0)