We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21981e0 commit 7f6b1a3Copy full SHA for 7f6b1a3
tests/test_transport.py
@@ -274,6 +274,15 @@ def test_keep_alive_on_by_default(make_client):
274
assert "socket_options" not in options
275
276
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
286
@pytest.mark.skipif(not PY38, reason="HTTP2 libraries are only available in py3.8+")
287
def test_http2_with_https_dsn(make_client):
288
client = make_client(_experiments={"transport_http2": True})
0 commit comments