Commit 66386c89 authored by Stan Hu's avatar Stan Hu

Add debugging to see output when profiler_spec fails

This will help identify the cause with
https://gitlab.com/gitlab-org/gitlab/issues/206907.
parent 43d592fb
......@@ -221,6 +221,12 @@ describe Gitlab::Profiler do
.map { |(total)| total.to_f }
expect(output).to include('Kernel#sleep')
if total_times != total_times.sort.reverse
warn "Profiler test failed, output is:"
warn output
end
expect(total_times).to eq(total_times.sort.reverse)
expect(total_times).not_to eq(total_times.uniq)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment