Skip to content

Commit c2fbf47

Browse files
nitzanjAmir Tocker
authored andcommitted
Fix test to handle non-deterministic set order.
1 parent 43b5821 commit c2fbf47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloudinary-core/src/test/java/com/cloudinary/UtilTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ public class UtilTest {
1515
public void encodeContext() throws Exception {
1616
Map context = ObjectUtils.asMap("caption", "different = caption", "alt2", "alt|alternative");
1717
String result = Util.encodeContext(context);
18-
assertEquals("caption=different \\= caption|alt2=alt\\|alternative", result);
18+
assertTrue("caption=different \\= caption|alt2=alt\\|alternative".equals(result) ||
19+
"alt2=alt\\|alternative|caption=different \\= caption".equals(result));
1920
}
2021

2122
}

0 commit comments

Comments
 (0)