Project

General

Profile

Actions

Bug #9525

closed

Tests can fail randomly when array order doesn't match

Added by Stephen Benjamin almost 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Some things like applicable_errata return true arrays and can result in failures like http://ci.theforeman.org/job/test_katello_core/11499/database=postgresql,ruby=1.9.3/testReport/junit/%28root%29/Katello__SystemTest/test_available_and_applicable_errta/ (see below).

It seems we should be comparing array intersections or something, like (array1 & array2) == array1.

<[#<Katello::Erratum id: 94098884, uuid: "partylikeits1999", errata_id: "RHSA-1999-1231", created_at: "2015-02-24 08:02:04", updated_at: "2015-02-24 08:02:04", issued: "2015-02-21 08:02:04", updated: "2015-02-21 08:02:04", errata_type: "security", severity: "Critical", title: "World is ending", solution: nil, description: nil, summary: nil, reboot_suggested: nil>,
 #<Katello::Erratum id: 92680584, uuid: "100dividedby0", errata_id: "RHBA-2014-013", created_at: "2015-02-24 08:02:04", updated_at: "2015-02-24 08:02:04", issued: "2015-02-21 08:02:04", updated: "2015-02-21 08:02:04", errata_type: nil, severity: nil, title: "Divide by zero", solution: nil, description: nil, summary: nil, reboot_suggested: nil>]> expected but was
<[#<Katello::Erratum id: 92680584, uuid: "100dividedby0", errata_id: "RHBA-2014-013", created_at: "2015-02-24 08:02:04", updated_at: "2015-02-24 08:02:04", issued: "2015-02-21 08:02:04", updated: "2015-02-21 08:02:04", errata_type: nil, severity: nil, title: "Divide by zero", solution: nil, description: nil, summary: nil, reboot_suggested: nil>, #<Katello::Erratum id: 94098884, uuid: "partylikeits1999", errata_id: "RHSA-1999-1231", created_at: "2015-02-24 08:02:04", updated_at: "2015-02-24 08:02:04", issued: "2015-02-21 08:02:04", updated: "2015-02-21 08:02:04", errata_type: "security", severity: "Critical", title: "World is ending", solution: nil, description: nil, summary: nil, reboot_suggested: nil>]>. (test_available_and_applicable_errta)
/var/lib/workspace/workspace/test_katello_core/database/postgresql/ruby/1.9.3/plugin/test/models/system_test.rb:161    
Actions #1

Updated by The Foreman Bot almost 10 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 67
  • Pull request https://github.com/Katello/katello/pull/5044 added
  • Pull request deleted ()
Actions #2

Updated by Eric Helms almost 10 years ago

  • Translation missing: en.field_release set to 23
  • Triaged changed from No to Yes
Actions #3

Updated by Anonymous almost 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF