Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test/ably/rest/restrequest_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ async def test_timeout(self):
timeout = 0.000001
ably = AblyRest(token="foo", http_request_timeout=timeout)
assert ably.http.http_request_timeout == timeout
with pytest.raises(httpx.ReadTimeout):
# `http_open_timeout` keeps its four-second default, so the request carries a
# connect budget as well as a read budget and either can be the one to expire
with pytest.raises(httpx.TimeoutException):
await ably.request('GET', '/time', version=Defaults.protocol_version)
await ably.close()

Expand Down
Loading