Commit 8d9d6bf1 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'sh-debug-profiler-spec' into 'master'

Add debugging to see output when profiler_spec fails

See merge request gitlab-org/gitlab!26015
parents dc0ebe21 66386c89
...@@ -221,6 +221,12 @@ describe Gitlab::Profiler do ...@@ -221,6 +221,12 @@ describe Gitlab::Profiler do
.map { |(total)| total.to_f } .map { |(total)| total.to_f }
expect(output).to include('Kernel#sleep') 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).to eq(total_times.sort.reverse)
expect(total_times).not_to eq(total_times.uniq) expect(total_times).not_to eq(total_times.uniq)
end 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