Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_signup: Fix buggy test setup.

Tim Abbott5ab64d46a600
diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py
index fd3868d89c6..ca027d74513 100644
--- a/zerver/tests/test_signup.py
+++ b/zerver/tests/test_signup.py
@@ -2656,7 +2656,9 @@ class MultiuseInviteTest(ZulipTestCase):
def test_expired_multiuse_link(self) -> None:
email = self.nonreg_email("newuser")
- date_sent = timezone_now() - datetime.timedelta(days=2)
+ date_sent = timezone_now() - datetime.timedelta(
+ days=settings.INVITATION_LINK_VALIDITY_DAYS + 1
+ )
invite_link = self.generate_multiuse_invite_link(date_sent=date_sent)
result = self.client_post(invite_link, {"email": email})