Skip to content

Commit

Permalink
deactivate only when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Nov 18, 2024
1 parent 16673ba commit 3f462a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,4 +306,4 @@ def initialize(*args, &block)
# Code tracking calls out to the current DI component, which may reference
# mock objects in the test suite. Disable it and tests that need code tracking
# will enable it back for themselves.
Datadog::DI.deactivate_tracking!
Datadog::DI.deactivate_tracking! if Datadog::DI.respond_to?(:deactivate_tracking!)

0 comments on commit 3f462a9

Please sign in to comment.