Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-769

UnmodifiableMultiValuedMapTest is flaky

    XMLWordPrintableJSON

    Details

      Description

      Several functions in UnmodifiableMultiValuedMapTest (org.apache.commons.collections4.multimap.UnmodifiableMultiValuedMapTest) assert map.toString() is equal to a hard-coded string "

      {one=[uno, un], two=[dos, deux], three=[tres, trois]}

      ", where the map variable is of type MultiValuedMap.

      These assertions are flaky because map.toString() can be equal to any one of the 6 strings where "one=[uno, un]", "two=[dos, deux]" and "three=[tres, trois]" are ordered arbitrarily.

      The functions with this issue are: 

      • testRemoveException()
      • testRemoveMappingException()
      • testClearException

       

      PR: https://github.com/apache/commons-collections/pull/190

        Attachments

          Activity

            People

            • Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              xint5 XinT
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 50m
                1h 50m