mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
tests: Optimize a slow test in tests_bots.py.
tests now ran in 7.649s from 9.297s. And this test works just as well with 3 bots, since only 3 database queries with 3 bots confirms we're not doing linear queries in the number of bots in the organization.
This commit is contained in:
committed by
Tim Abbott
parent
48eb0c2358
commit
4603cdba7e
@@ -100,7 +100,7 @@ class BotTest(ZulipTestCase, UploadSerializeMixin):
|
||||
self.login(hamlet.email)
|
||||
self.assert_num_bots_equal(0)
|
||||
|
||||
num_bots = 30
|
||||
num_bots = 3
|
||||
for i in range(num_bots):
|
||||
full_name = 'Bot %d' % (i,)
|
||||
short_name = 'bot-%d' % (i,)
|
||||
|
||||
Reference in New Issue
Block a user