diff --git a/spec/datadog/di/code_tracker_spec.rb b/spec/datadog/di/code_tracker_spec.rb index 5decf8459e0..5b9bf0d7fde 100644 --- a/spec/datadog/di/code_tracker_spec.rb +++ b/spec/datadog/di/code_tracker_spec.rb @@ -139,9 +139,6 @@ context 'when a file is required' do it 'requests to install pending line probes' do - # Matchers can be lazily loaded, force all code to be loaded here. - expect(4).to eq(4) - expect(Datadog::DI).to receive(:current_component).and_return(component) expect(probe_manager).to receive(:install_pending_line_probes) do |path| # Should be an absolute path @@ -154,9 +151,6 @@ context 'when a file is loaded' do it 'requests to install pending line probes' do - # Matchers can be lazily loaded, force all code to be loaded here. - expect(4).to eq(4) - expect(Datadog::DI).to receive(:current_component).and_return(component) expect(probe_manager).to receive(:install_pending_line_probes) do |path| # Should be an absolute path