Skip to content

Commit fa7c8bf

Browse files
committed
Increase timeout to 20s due to slow API response times in accounts users
1 parent 6cc1155 commit fa7c8bf

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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 = 10.0,
30+
timeout: float = 20.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 = 10.0,
43+
timeout: float = 20.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
@@ -32,7 +32,7 @@ def test_async_http_initialization(mocker):
3232
"User-Agent": "swo-marketplace-client/1.0",
3333
"Authorization": "Bearer test-token",
3434
},
35-
timeout=10.0,
35+
timeout=20.0,
3636
transport=mocker.ANY,
3737
)
3838

@@ -51,7 +51,7 @@ def test_async_env_initialization(monkeypatch, mocker):
5151
"User-Agent": "swo-marketplace-client/1.0",
5252
"Authorization": f"Bearer {API_TOKEN}",
5353
},
54-
timeout=10.0,
54+
timeout=20.0,
5555
transport=mocker.ANY,
5656
)
5757

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=10.0,
25+
timeout=20.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=10.0,
44+
timeout=20.0,
4545
transport=mocker.ANY,
4646
)
4747

0 commit comments

Comments
 (0)