Skip to content

Commit 66546cd

Browse files
committed
deactivate only when possible
1 parent dbf2c9b commit 66546cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,4 +306,4 @@ def initialize(*args, &block)
306306
# Code tracking calls out to the current DI component, which may reference
307307
# mock objects in the test suite. Disable it and tests that need code tracking
308308
# will enable it back for themselves.
309-
Datadog::DI.deactivate_tracking!
309+
Datadog::DI.deactivate_tracking! if Datadog::DI.respond_to?(:deactivate_tracking!)

0 commit comments

Comments
 (0)