mirror of https://github.com/zulip/zulip.git
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:
parent
3d5c24ab40
commit
88ec999cf3
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue