Skip to content

Commit

Permalink
Fix the test properly. (#2720)
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonnmcmanus committed Jul 26, 2024
1 parent d1badba commit b7e268f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,12 @@ public void testNestingLimitDefault() throws IOException {
assertThat(e)
.hasMessageThat()
.isEqualTo(
"Nesting limit 255 reached at line 1 column 257 path $" + "[0]".repeat(defaultLimit));
"Nesting limit "
+ defaultLimit
+ " reached at line 1 column "
+ (defaultLimit + 2)
+ " path $"
+ "[0]".repeat(defaultLimit));
}

// Note: The column number reported in the expected exception messages is slightly off and points
Expand Down

0 comments on commit b7e268f

Please sign in to comment.