From af128f57e2bb78de7e9a67fa5005e9f51343d43e Mon Sep 17 00:00:00 2001 From: st0012 Date: Sat, 18 Sep 2021 12:21:11 +0800 Subject: [PATCH] Make sure subscribed tracing events are cleared after each tests --- sentry-rails/spec/spec_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/sentry-rails/spec/spec_helper.rb b/sentry-rails/spec/spec_helper.rb index d19f9257a..7c9bb9a95 100644 --- a/sentry-rails/spec/spec_helper.rb +++ b/sentry-rails/spec/spec_helper.rb @@ -42,6 +42,7 @@ config.after :each do Sentry::Rails::Tracing.unsubscribe_tracing_events + expect(Sentry::Rails::Tracing.subscribed_tracing_events).to be_empty Sentry::Rails::Tracing.remove_active_support_notifications_patch end