Skip to content

Commit

Permalink
integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Aug 26, 2024
1 parent fae98df commit 531b07c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec/datadog/di/integration/instrumentation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@

it 'invokes probe' do
remote_processor.process(probe_rc_spec)
=begin
expect(Datadog::DI::ProbeNotifier).to receive(:notify_executed).and_call_original do |_probe, **opts|
p _probe
p opts[:tracepoint].binding.local_variables
end
expect(Datadog::DI::ProbeNotifier).to receive(:notify_snapshot).and_call_original do |_probe, **opts|
p _probe
p opts[:tracepoint].binding.local_variables
expect(InstrumentationIntegrationTestClass.new.test_method).to eq(42)
end

it 'assembles expected notification payload' do
remote_processor.process(probe_rc_spec)
payload = nil
expect(Datadog::DI.component.probe_notifier_worker).to receive(:add_snapshot) do |_payload|
payload = _payload
end
=end
expect(InstrumentationIntegrationTestClass.new.test_method).to eq(42)
expect(payload).to be_a(Hash)
end
end
end
Expand Down

0 comments on commit 531b07c

Please sign in to comment.