From 7960d31416c2991acd4a0f948822d53399cb044c Mon Sep 17 00:00:00 2001 From: Will Daly Date: Tue, 4 Feb 2014 22:58:58 -0500 Subject: [PATCH] Increase wait time in XQueue stub test --- common/djangoapps/terrain/stubs/tests/test_xqueue_stub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/djangoapps/terrain/stubs/tests/test_xqueue_stub.py b/common/djangoapps/terrain/stubs/tests/test_xqueue_stub.py index 5ac170b18742..21627463573f 100644 --- a/common/djangoapps/terrain/stubs/tests/test_xqueue_stub.py +++ b/common/djangoapps/terrain/stubs/tests/test_xqueue_stub.py @@ -101,7 +101,7 @@ def test_multiple_response_matches(self, post): ) # Wait for the delayed grade response - self._wait_for_mock_called(logger.error, max_time=10) + self._wait_for_mock_called(logger.error) # Expect that we do NOT receive a response # and that an error message is logged @@ -152,7 +152,7 @@ def _check_grade_response(self, post_mock, callback_url, expected_header, expect """ # Wait for the server to POST back to the callback URL # If it takes too long, continue anyway - self._wait_for_mock_called(post_mock, max_time=10) + self._wait_for_mock_called(post_mock) # Check the response posted back to us # This is the default response @@ -164,7 +164,7 @@ def _check_grade_response(self, post_mock, callback_url, expected_header, expect # Check that the POST request was made with the correct params post_mock.assert_called_with(callback_url, data=expected_callback_dict) - def _wait_for_mock_called(self, mock_obj, max_time=10): + def _wait_for_mock_called(self, mock_obj, max_time=120): """ Wait for `mock` (a `Mock` object) to be called. If seconds elapsed exceeds `max_time`, continue without error.