Skip to content

Commit 9379b07

Browse files
committed
Increase timeouts as e2e fail by timeout
1 parent 93bf42f commit 9379b07

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

mpt_api_client/http/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(
2727
*,
2828
base_url: str | None = None,
2929
api_token: str | None = None,
30-
timeout: float = 5.0,
30+
timeout: float = 10.0,
3131
retries: int = 5,
3232
):
3333
api_token = api_token or os.getenv("MPT_TOKEN")

mpt_api_client/http/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(
4040
*,
4141
base_url: str | None = None,
4242
api_token: str | None = None,
43-
timeout: float = 5.0,
43+
timeout: float = 10.0,
4444
retries: int = 5,
4545
):
4646
api_token = api_token or os.getenv("MPT_TOKEN")

tests/unit/http/test_async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_async_http_initialization(mocker):
3333
"Authorization": "Bearer test-token",
3434
"Accept": "application/json",
3535
},
36-
timeout=5.0,
36+
timeout=10.0,
3737
transport=mocker.ANY,
3838
)
3939

@@ -53,7 +53,7 @@ def test_async_env_initialization(monkeypatch, mocker):
5353
"Authorization": f"Bearer {API_TOKEN}",
5454
"Accept": "application/json",
5555
},
56-
timeout=5.0,
56+
timeout=10.0,
5757
transport=mocker.ANY,
5858
)
5959

tests/unit/http/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_http_initialization(mocker):
2222
"User-Agent": "swo-marketplace-client/1.0",
2323
"Authorization": "Bearer test-token",
2424
},
25-
timeout=5.0,
25+
timeout=10.0,
2626
transport=mocker.ANY,
2727
)
2828

@@ -41,7 +41,7 @@ def test_env_initialization(monkeypatch, mocker):
4141
"User-Agent": "swo-marketplace-client/1.0",
4242
"Authorization": f"Bearer {API_TOKEN}",
4343
},
44-
timeout=5.0,
44+
timeout=10.0,
4545
transport=mocker.ANY,
4646
)
4747

0 commit comments

Comments
 (0)