Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-9276

Transient test failure in Edit::Instrument::Merge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2019-04-26
    • None
    • None
    • None

      It seems that the order in which link attribute credits are created/inserted is variable, as indicated by this failure which we occasionally see:

      #   Failed test at t/lib/t/MusicBrainz/Server/Edit/Instrument/Merge.pm line 31.
      # Compared $data->[0]{"link"}
      #    got : '6'
      # expect : '5'
      
      #   Failed test at t/lib/t/MusicBrainz/Server/Edit/Instrument/Merge.pm line 79.
      # Compared $data->[0]{"credited_as"}
      #    got : 'kool drums'
      # expect : 'drumz'
      

      But it's not totally random, because we only see this failure once in a blue moon. We can make the test not expect a given order, but it would be better IMO to make it deterministic.

            bitmap Michael Wiencek
            bitmap Michael Wiencek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2019-04-26