Add link to discussion

This commit is contained in:
Michael Kozono 2017-10-31 14:12:30 -07:00 committed by Francisco Lopez
parent 91628170c7
commit 987e7b7744
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ describe 'Rack Attack global throttles' do
# while time is stopped) we expect a 429. But sometimes we get a 200,
# sometimes for more than one request, but eventually we get a 429. This
# constant and its usages should be removed if we figure out why this happens.
# More on this:
# https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14708#note_45151688
NUM_TRIES_FOR_REJECTION = 1
# Extra time travel past what should be strictly necessary to ensure the
@ -16,6 +18,8 @@ describe 'Rack Attack global throttles' do
#
# Why add this? Sometimes we get a 429 when we expect a 200. This constant and
# its usages should be removed if we figure out why this happens.
# More on this:
# https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14708#note_45151688
NEXT_TIME_PERIOD_BUFFER = 0.seconds
let(:settings) { Gitlab::CurrentSettings.current_application_settings }