summaryrefslogtreecommitdiff
path: root/spec/workers/ci/archive_traces_cron_worker_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/ci/archive_traces_cron_worker_spec.rb')
-rw-r--r--spec/workers/ci/archive_traces_cron_worker_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/ci/archive_traces_cron_worker_spec.rb b/spec/workers/ci/archive_traces_cron_worker_spec.rb
index 01232e2a58b..fc700c15b10 100644
--- a/spec/workers/ci/archive_traces_cron_worker_spec.rb
+++ b/spec/workers/ci/archive_traces_cron_worker_spec.rb
@@ -63,7 +63,7 @@ describe Ci::ArchiveTracesCronWorker do
let!(:build) { create(:ci_build, :success, :trace_live, finished_at: finished_at) }
before do
- allow(Gitlab::Sentry).to receive(:track_exception)
+ allow(Gitlab::ErrorTracking).to receive(:track_and_raise_for_dev_exception)
allow_any_instance_of(Gitlab::Ci::Trace).to receive(:archive!).and_raise('Unexpected error')
end