-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make rest client time out after 10s (#20)
- Loading branch information
1 parent
48fdb78
commit 61087e4
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
import json | ||
from typing import TYPE_CHECKING, Any | ||
|
||
from aiohttp import ClientTimeout | ||
from aiohttp.hdrs import METH_PUT | ||
from awesomeversion import AwesomeVersion | ||
import pytest | ||
|
@@ -93,7 +94,9 @@ async def test_streams_add( | |
"camera.12mp_fluent", "rtsp://test:[email protected]:554/Preview_06_sub" | ||
) | ||
|
||
responses.assert_called_once_with(url, method=METH_PUT, params=params) | ||
responses.assert_called_once_with( | ||
url, method=METH_PUT, params=params, timeout=ClientTimeout(total=10) | ||
) | ||
|
||
|
||
VERSION_ERR = "server version '{}' not >= 1.9.5 and < 2.0.0" | ||
|