diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-10-12 17:49:22 -0700 |
---|---|---|
committer | Francisco Lopez <fjlopez@gitlab.com> | 2017-11-17 09:58:18 +0100 |
commit | d87030714a654b0dfa47aa6b38eb970731e7a04e (patch) | |
tree | c6657d86eebd10aea3372826e42712394c339735 /spec/requests | |
parent | 143369e45b5c32c21d9abd315662eca186d95ab6 (diff) | |
download | gitlab-ce-d87030714a654b0dfa47aa6b38eb970731e7a04e.tar.gz |
Allow throttling code in test environment
This code should not break other tests because the rate limits are off by default.
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/rack_attack_spec.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/spec/requests/rack_attack_spec.rb b/spec/requests/rack_attack_spec.rb index 4f406f03993..97108476e00 100644 --- a/spec/requests/rack_attack_spec.rb +++ b/spec/requests/rack_attack_spec.rb @@ -4,9 +4,6 @@ describe Rack::Attack do let(:settings) { Gitlab::CurrentSettings.current_application_settings } before do - # Ensure throttles are defined, because this is normally skipped for tests - described_class.define_throttles - # Instead of test environment's :null_store Rack::Attack.cache.store = ActiveSupport::Cache::MemoryStore.new |