Commit 071ef85a authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'am-fix-failing-tests' into 'master'

Set class instance vars to nil in tests

See merge request gitlab-org/gitlab!73067
parents 048c0528 29f3a226
......@@ -38,6 +38,11 @@ RSpec.shared_context 'stubbed service ping metrics definitions' do
)
end
after do |example|
Gitlab::Usage::Metric.instance_variable_set(:@all, nil)
Gitlab::Usage::MetricDefinition.instance_variable_set(:@all, nil)
end
def metric_attributes(key_path, category, value_type = 'string')
{
'key_path' => key_path,
......
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