mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-05 20:35:37 -04:00
fix: flakiness in org.json.junit.XMLTest#testIndentComplicatedJsonObjectWithArrayAndWithConfig
This commit is contained in:
parent
f346203cd6
commit
4dfd779b1c
@ -1234,7 +1234,7 @@ public class XMLTest {
|
|||||||
for (int numRead; (numRead = in.read(buffer, 0, buffer.length)) > 0; ) {
|
for (int numRead; (numRead = in.read(buffer, 0, buffer.length)) > 0; ) {
|
||||||
expected.append(buffer, 0, numRead);
|
expected.append(buffer, 0, numRead);
|
||||||
}
|
}
|
||||||
assertEquals(expected.toString(), actualString);
|
assertTrue(XML.toJSONObject(expected.toString()).similar(XML.toJSONObject(actualString)));
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
fail("file writer error: " +e.getMessage());
|
fail("file writer error: " +e.getMessage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user