Skip to content

Commit 31b6620

Browse files
committed
Minor test robustification
1 parent 7cbc141 commit 31b6620

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/fasterxml/jackson/databind/struct/TestPOJOAsArrayWithBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ public void testUnknownExtraProp() throws Exception
207207
MAPPER.readValue(json, ValueClassXY.class);
208208
fail("should not pass with extra element");
209209
} catch (MismatchedInputException e) {
210-
verifyException(e, "Unexpected JSON values");
210+
// Looks like we get either "Unexpected JSON values" or "Unexpected JSON value(s)"
211+
verifyException(e, "Unexpected JSON value");
211212
}
212213

213214
// but actually fine if skip-unknown set

0 commit comments

Comments
 (0)