Commit 2cf1f0b3 authored by jejacks0n's avatar jejacks0n

Disable caching for all experiments in tests

parent 93883dba
...@@ -64,11 +64,6 @@ RSpec.describe Projects::IssuesController do ...@@ -64,11 +64,6 @@ RSpec.describe Projects::IssuesController do
end end
describe 'the null hypothesis experiment', :snowplow do describe 'the null hypothesis experiment', :snowplow do
before do
# disable experiment caching
allow(Gitlab::Experiment::Configuration).to receive(:cache).and_return(nil)
end
it 'defines the expected before actions' do it 'defines the expected before actions' do
expect(controller).to use_before_action(:run_null_hypothesis_experiment) expect(controller).to use_before_action(:run_null_hypothesis_experiment)
end end
......
# frozen_string_literal: true
# Disable all caching for experiments in tests.
Gitlab::Experiment::Configuration.cache = nil
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment