diff options
-rw-r--r-- | config/initializers/8_metrics.rb | 3 | ||||
-rw-r--r-- | spec/models/merge_request_spec.rb | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/config/initializers/8_metrics.rb b/config/initializers/8_metrics.rb index 4fa72a494d0..efa4d870e58 100644 --- a/config/initializers/8_metrics.rb +++ b/config/initializers/8_metrics.rb @@ -116,9 +116,6 @@ def instrument_classes(instrumentation) # Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/30224#note_32306159 instrumentation.instrument_instance_method(MergeRequestDiff, :load_commits) - - # Needed for https://gitlab.com/gitlab-org/gitlab-ce/issues/36061 - instrumentation.instrument_instance_method(MergeRequest, :fetch_ref!) end # rubocop:enable Metrics/AbcSize diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb index f719ee26767..d022dae3476 100644 --- a/spec/models/merge_request_spec.rb +++ b/spec/models/merge_request_spec.rb @@ -1756,7 +1756,7 @@ describe MergeRequest do end describe '#fetch_ref!' do - it 'fetch the ref correctly' do + it 'fetches the ref correctly' do expect { subject.target_project.repository.delete_refs(subject.ref_path) }.not_to raise_error subject.fetch_ref! |