Skip to content

Commit 5db8471

Browse files
committed
Improved exception check
1 parent e1388bf commit 5db8471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/github/underscore/StringTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3612,8 +3612,8 @@ void fromXmlStackoverflowObject() throws IOException {
36123612
try {
36133613
U.fromXmlMap(stringXml);
36143614
} catch (Throwable throwable) {
3615-
System.out.println("!!! - " + throwable);
3616-
assertTrue(throwable instanceof StackOverflowError);
3615+
assertTrue(throwable instanceof StackOverflowError
3616+
|| throwable instanceof org.xml.sax.SAXParseException);
36173617
}
36183618
}
36193619

0 commit comments

Comments
 (0)