You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/10/12 00:04:00 UTC

[jira] [Work logged] (COLLECTIONS-769) UnmodifiableMultiValuedMapTest is flaky

     [ https://issues.apache.org/jira/browse/COLLECTIONS-769?focusedWorklogId=499122&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-499122 ]

ASF GitHub Bot logged work on COLLECTIONS-769:
----------------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Oct/20 00:03
            Start Date: 12/Oct/20 00:03
    Worklog Time Spent: 10m 
      Work Description: tongxin97 opened a new pull request #190:
URL: https://github.com/apache/commons-collections/pull/190


   Detailed description: https://issues.apache.org/jira/browse/COLLECTIONS-769
   
   Fix: replace the affected assertions with calls to a helper function that asserts all the added values are still present in the map under test. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 499122)
    Remaining Estimate: 0h
            Time Spent: 10m

> UnmodifiableMultiValuedMapTest is flaky
> ---------------------------------------
>
>                 Key: COLLECTIONS-769
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-769
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Map
>    Affects Versions: 4.4
>            Reporter: XinT
>            Priority: Minor
>              Labels: pull-request-available, test
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)