Skip to content

Commit 4dfd779

Browse files
author
simonh5
committed
fix: flakiness in org.json.junit.XMLTest#testIndentComplicatedJsonObjectWithArrayAndWithConfig
1 parent f346203 commit 4dfd779

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/json/junit/XMLTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ public void testIndentComplicatedJsonObjectWithArrayAndWithConfig(){
12341234
for (int numRead; (numRead = in.read(buffer, 0, buffer.length)) > 0; ) {
12351235
expected.append(buffer, 0, numRead);
12361236
}
1237-
assertEquals(expected.toString(), actualString);
1237+
assertTrue(XML.toJSONObject(expected.toString()).similar(XML.toJSONObject(actualString)));
12381238
}
12391239
} catch (IOException e) {
12401240
fail("file writer error: " +e.getMessage());

0 commit comments

Comments
 (0)