diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-21 18:10:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-21 18:10:51 +0300 |
commit | 42d323de78244a6654a5f11ec16abcec8a849e81 (patch) | |
tree | 9d0024970e0200b857cf2074f981eff37dc5482f /lib/gitlab/ci/reports | |
parent | 5af83f077226003d33b040ebd46fe4c5a16a5bac (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/reports')
-rw-r--r-- | lib/gitlab/ci/reports/test_suite_comparer.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/ci/reports/test_suite_comparer.rb b/lib/gitlab/ci/reports/test_suite_comparer.rb index 239fc3b15e7..287a03cefe2 100644 --- a/lib/gitlab/ci/reports/test_suite_comparer.rb +++ b/lib/gitlab/ci/reports/test_suite_comparer.rb @@ -8,6 +8,7 @@ module Gitlab DEFAULT_MAX_TESTS = 100 DEFAULT_MIN_TESTS = 10 + TestSummary = Struct.new(:new_failures, :existing_failures, :resolved_failures, :new_errors, :existing_errors, :resolved_errors, keyword_init: true) attr_reader :name, :base_suite, :head_suite @@ -90,7 +91,7 @@ module Gitlab def limited_tests strong_memoize(:limited_tests) do # rubocop: disable CodeReuse/ActiveRecord - OpenStruct.new( + TestSummary.new( new_failures: new_failures.take(max_tests), existing_failures: existing_failures.take(max_tests(new_failures)), resolved_failures: resolved_failures.take(max_tests(new_failures, existing_failures)), |