Fix test_signup.LoginTest.test_register.

The test currently expects 67 database queries during registration, but we
added two more (likely calls to resolve_subdomain_to_realm) in ea39fb2.
This commit is contained in:
Rishi Gupta 2016-09-28 22:19:13 -07:00 committed by Tim Abbott
parent 464ced2b48
commit 48bec80c61
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ class LoginTest(ZulipTestCase):
with queries_captured() as queries: with queries_captured() as queries:
self.register("test", "test") self.register("test", "test")
# Ensure the number of queries we make is not O(streams) # Ensure the number of queries we make is not O(streams)
self.assert_max_length(queries, 67) self.assert_max_length(queries, 69)
user_profile = get_user_profile_by_email('test@zulip.com') user_profile = get_user_profile_by_email('test@zulip.com')
self.assertEqual(get_session_dict_user(self.client.session), user_profile.id) self.assertEqual(get_session_dict_user(self.client.session), user_profile.id)