fix: advertise retry delay on context timeout (#40)
This commit is contained in:
1 parent
9ea8667264
commit
965b24a183
2 files changed
+5
-1
No files matched your search
@@ -27,6 +27,7 @@ async def test_context_returns_fallback_when_gitea_exceeds_deadline(monkeypatch)
|
||||
response = await main.context()
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.headers["retry-after"] == "1"
|
||||
assert b'"repos":[]' in response.body
|
||||
assert b'"error":"Gitea context request timed out after 0.01s"' in response.body
|
||||
assert cancelled.is_set()
|
||||
Reference in new issue
Block a user