diff --git a/common/djangoapps/enrollment/tests/test_views.py b/common/djangoapps/enrollment/tests/test_views.py index 750e6cf1f4..c0fad28f9d 100644 --- a/common/djangoapps/enrollment/tests/test_views.py +++ b/common/djangoapps/enrollment/tests/test_views.py @@ -575,7 +575,7 @@ class EnrollmentTest(EnrollmentTestMixin, ModuleStoreTestCase, APITestCase, Ente self.assert_enrollment_status(username=staff_user.username, expected_status=status.HTTP_200_OK) # Once the limit is reached, subsequent requests should fail - for attempt in xrange(rate_limit + 10): + for attempt in xrange(rate_limit + 50): self.assert_enrollment_status(username=staff_user.username, expected_status=status. HTTP_429_TOO_MANY_REQUESTS) def test_enrollment_throttle_for_service(self): diff --git a/common/djangoapps/enrollment/views.py b/common/djangoapps/enrollment/views.py index 8bd64cf177..d788b74869 100644 --- a/common/djangoapps/enrollment/views.py +++ b/common/djangoapps/enrollment/views.py @@ -75,7 +75,7 @@ class EnrollmentUserThrottle(UserRateThrottle, ApiKeyPermissionMixIn): """Limit the number of requests users can make to the enrollment API.""" THROTTLE_RATES = { 'user': '40/minute', - 'staff': '400/minute', + 'staff': '600/minute', } def allow_request(self, request, view):