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:
Raymond Akornor
2019-02-22 22:32:08 +00:00
committed by Tim Abbott
parent 48eb0c2358
commit 4603cdba7e

View File

@@ -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,)