Skip to content

Commit 7f6b1a3

Browse files
committed
add test
1 parent 21981e0 commit 7f6b1a3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_transport.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,15 @@ def test_keep_alive_on_by_default(make_client):
274274
assert "socket_options" not in options
275275

276276

277+
def test_default_timeout(make_client):
278+
client = make_client()
279+
280+
options = client.transport._get_pool_options()
281+
assert "timeout" in options
282+
assert options["timeout"].connect_timeout == 5
283+
assert options["timeout"].read_timeout == 5
284+
285+
277286
@pytest.mark.skipif(not PY38, reason="HTTP2 libraries are only available in py3.8+")
278287
def test_http2_with_https_dsn(make_client):
279288
client = make_client(_experiments={"transport_http2": True})

0 commit comments

Comments
 (0)