diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 12:09:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 12:09:01 +0300 |
commit | c72e5ebe9938d315ec598197873e71a80168d40a (patch) | |
tree | 439bf5c40aaf774e5a301825af517cb52726f450 /spec/lib | |
parent | ffc43b862df32a590eae874bcbb11109b46dc8be (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/profiler_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/profiler_spec.rb b/spec/lib/gitlab/profiler_spec.rb index 1e53faf7275..603417c5532 100644 --- a/spec/lib/gitlab/profiler_spec.rb +++ b/spec/lib/gitlab/profiler_spec.rb @@ -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 |