tests: Bump up max length queries in test_bulk_message_fetching().

Bump up max length queries in `test_bulk_message_fetching()` to 11
in `zerver/tests/test_messages.py` to avoid test failing when run
this test alone.

Fixes #3087.
This commit is contained in:
Rafid Aslam 2017-01-06 08:01:55 +07:00 committed by Tim Abbott
parent 3d5c24ab40
commit 88ec999cf3
1 changed files with 1 additions and 5 deletions

View File

@ -573,11 +573,7 @@ class MessageDictTest(ZulipTestCase):
delay = time.time() - t
# Make sure we don't take longer than 1ms per message to extract messages.
self.assertTrue(delay < 0.001 * num_ids)
# Note, this fails if you run
# tools/test-backend zerver.tests.test_messages.MessageDictTest or
# tools/test-backend zerver.tests.test_messages.MessageDictTest.test_bulk_message_fetching.
# You need to run the full suite as tools/test-backend zerver.tests.test_messages.
self.assert_max_length(queries, 7)
self.assert_max_length(queries, 11)
self.assertEqual(len(rows), num_ids)
def test_applying_markdown(self):