diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2022-09-18 14:09:05 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2022-09-18 16:36:55 +0200 |
commit | 5d1e5133e4a368f9b025a7f92f7920920aba3cf1 (patch) | |
tree | 55cee8767a57aaa26306cac0d376c6ff21712aa0 /_pytest | |
parent | fee2398b6f7a3f66d8f9fb364f05ad1d31e7dc83 (diff) | |
download | wee-slack-5d1e5133e4a368f9b025a7f92f7920920aba3cf1.tar.gz |
Support retrying requests when ratelimited
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/conftest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/_pytest/conftest.py b/_pytest/conftest.py index af86b02..90e064e 100644 --- a/_pytest/conftest.py +++ b/_pytest/conftest.py @@ -51,7 +51,8 @@ def realish_eventrouter(mock_websocket, mock_weechat): rtmstartdata = rtmstartfile.read().decode("utf-8") else: rtmstartdata = rtmstartfile.read() - e.receive_httprequest_callback(context, "", 0, rtmstartdata, "") + response = "HTTP/2 200\r\n\r\n" + rtmstartdata + e.receive_httprequest_callback(context, "", 0, response, "") while len(e.queue): e.handle_next() for team in e.teams.values(): |