Skip to content

Commit 06dadee

Browse files
committed
fix test
1 parent 2699fe0 commit 06dadee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/ilm/src/test/java/org/elasticsearch/xpack/ilm/history/ILMHistoryItemTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public void testTruncateLongError() throws IOException {
142142
"{\"type\":\"illegal_argument_exception\",\"reason\":\""
143143
// We subtract a number of characters here due to the truncation being based
144144
// on the length of the whole string, not just the "reason" part.
145-
+ longError.substring(0, LifecycleExecutionState.MAXIMUM_STEP_INFO_STRING_LENGTH - 47)
145+
+ longError.substring(0, LifecycleExecutionState.MAXIMUM_STEP_INFO_STRING_LENGTH - 49)
146146
)
147147
);
148148
assertThat((String) item.get("error_details"), matchesPattern(".*\\.\\.\\. \\(\\d+ chars truncated\\).*"));

0 commit comments

Comments
 (0)