From ceaa76970fa0092bbdc35055c6f32dc63dd59960 Mon Sep 17 00:00:00 2001
From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Date: Fri, 23 Apr 2021 13:37:48 +0100
Subject: [PATCH] Remove room and user invite ratelimits in default unit test
 config (#9871)

---
 changelog.d/9871.misc | 1 +
 tests/utils.py        | 4 ++++
 2 files changed, 5 insertions(+)
 create mode 100644 changelog.d/9871.misc

diff --git a/changelog.d/9871.misc b/changelog.d/9871.misc
new file mode 100644
index 0000000000..b19acfab62
--- /dev/null
+++ b/changelog.d/9871.misc
@@ -0,0 +1 @@
+Disable invite rate-limiting by default when running the unit tests.
\ No newline at end of file
diff --git a/tests/utils.py b/tests/utils.py
index 63d52b9140..6bd008dcfe 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -153,6 +153,10 @@ def default_config(name, parse=False):
             "local": {"per_second": 10000, "burst_count": 10000},
             "remote": {"per_second": 10000, "burst_count": 10000},
         },
+        "rc_invites": {
+            "per_room": {"per_second": 10000, "burst_count": 10000},
+            "per_user": {"per_second": 10000, "burst_count": 10000},
+        },
         "rc_3pid_validation": {"per_second": 10000, "burst_count": 10000},
         "saml2_enabled": False,
         "public_baseurl": None,
-- 
GitLab