Skip to content
Snippets Groups Projects
Commit c9bbb411 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-610: fixed messagebus test which failed if ran in parallel in multiple...

SW-610: fixed messagebus test which failed if ran in parallel in multiple builds-with-tests. The problem was a too largs messagebody filling the broker queue. Reduced the bodies size to 2^16+1.
parent 71904e1d
No related branches found
No related tags found
No related merge requests found
......@@ -468,7 +468,9 @@ class SendReceiveMessage(unittest.TestCase):
"""
Test send/receive of an RequestMessage, containing a large string
"""
content = 100000*'abcdefghijklmnopqrstuvwxyz' #large enough string, but not too big to overload the broker buffers
content = ((2**16)+1)*'a' # test if the messages can handle a string with more than 2^16 chars which is aparently a probly for some brokers of messaging libs.
# so, we need a large enough string, but not too big to overload the broker buffers when running multiple tests at the same time
self._test_sendrecv(RequestMessage(content, reply_to=self.test_queue.address))
def test_sendrecv_request_message_with_nested_dicts_and_lists_with_special_types(self):
......@@ -483,7 +485,8 @@ class SendReceiveMessage(unittest.TestCase):
{'a': 'b',
'c': { 'timestamp': round_to_millisecond_precision(datetime.utcnow())}}],
'bar': [],
'large_string': 100000*'abcdefghijklmnopqrstuvwxyz' #large enough string, but not too big to overload the broker buffers
'large_string': ((2**16)+1)*'a' # test if the messages can handle a string with more than 2^16 chars which is aparently a probly for some brokers of messaging libs.
# so, we need a large enough string, but not too big to overload the broker buffers when running multiple tests at the same time
}
self._test_sendrecv(RequestMessage(content, reply_to=self.test_queue.address))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment