Skip to content

Commit

Permalink
fix: flakiness in org.json.junit.XMLTest#testIndentComplicatedJsonObj…
Browse files Browse the repository at this point in the history
…ectWithArrayAndWithConfig
  • Loading branch information
simonh5 committed Oct 14, 2023
1 parent f346203 commit 4dfd779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/json/junit/XMLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ public void testIndentComplicatedJsonObjectWithArrayAndWithConfig(){
for (int numRead; (numRead = in.read(buffer, 0, buffer.length)) > 0; ) {
expected.append(buffer, 0, numRead);
}
assertEquals(expected.toString(), actualString);
assertTrue(XML.toJSONObject(expected.toString()).similar(XML.toJSONObject(actualString)));
}
} catch (IOException e) {
fail("file writer error: " +e.getMessage());
Expand Down

0 comments on commit 4dfd779

Please sign in to comment.