From 0819503d8ba79504e5a0f5f7e4fea90972e0a876 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 1 Aug 2022 23:33:41 +0200 Subject: [PATCH] fix tests --- tests/Dockerfile | 16 ++++++++++++++++ tests/test_github.py | 1 + 2 files changed, 17 insertions(+) diff --git a/tests/Dockerfile b/tests/Dockerfile index 09c8b05..95c1afd 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -11,6 +11,22 @@ WORKDIR $SYNAPSE_CONFIG_DIR RUN chown -R 991:991 . \ && /start.py generate \ && sed -i 's=/data=/srv=;s=8008=80=;s=#sup=sup=;' homeserver.yaml \ + && echo "" >> homeserver.yaml \ + && echo "rc_message:" >> homeserver.yaml \ + && echo " burst_count: 1000" >> homeserver.yaml \ + && echo "rc_registration:" >> homeserver.yaml \ + && echo " burst_count: 1000" >> homeserver.yaml \ + && echo "rc_registration_token_validity:" >> homeserver.yaml \ + && echo " burst_count: 1000" >> homeserver.yaml \ + && echo "rc_login:" >> homeserver.yaml \ + && echo " address:" >> homeserver.yaml \ + && echo " burst_count: 1000" >> homeserver.yaml \ + && echo " account:" >> homeserver.yaml \ + && echo " burst_count: 1000" >> homeserver.yaml \ + && echo " failed_attempts:" >> homeserver.yaml \ + && echo " burst_count: 1000" >> homeserver.yaml \ + && echo "rc_joins:" >> homeserver.yaml \ + && echo " burst_count: 1000" >> homeserver.yaml \ && python -m synapse.app.homeserver --config-path homeserver.yaml --generate-keys RUN pip install --no-cache-dir markdown matrix-nio httpx coverage diff --git a/tests/test_github.py b/tests/test_github.py index 3943202..9bf52f8 100644 --- a/tests/test_github.py +++ b/tests/test_github.py @@ -127,3 +127,4 @@ class GithubFormatterTest(unittest.IsolatedAsyncioTestCase): ).json(), {"status": 401, "ret": "Invalid SHA-256 HMAC digest"}, ) + await client.close()