You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bruno P. Kinoshita (Jira)" <ji...@apache.org> on 2020/10/12 02:27:00 UTC
[jira] [Resolved] (COLLECTIONS-769) UnmodifiableMultiValuedMapTest
is flaky
[ https://issues.apache.org/jira/browse/COLLECTIONS-769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno P. Kinoshita resolved COLLECTIONS-769.
--------------------------------------------
Resolution: Fixed
> 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
> Assignee: Bruno P. Kinoshita
> Priority: Minor
> Labels: pull-request-available, test
> Fix For: 4.5
>
> Time Spent: 50m
> 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
>
> PR: https://github.com/apache/commons-collections/pull/190
--
This message was sent by Atlassian Jira
(v8.3.4#803005)