Skip to content

Commit cdcd0d9

Browse files
committed
TEST: Update negative byte size setting error msg
The new error message was updated in #29338
1 parent b37abb4 commit cdcd0d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/indices/IndexingMemoryControllerTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public void testNegativeMinIndexBufferSize() {
251251
Exception e = expectThrows(IllegalArgumentException.class,
252252
() -> new MockController(Settings.builder()
253253
.put("indices.memory.min_index_buffer_size", "-6mb").build()));
254-
assertEquals("Failed to parse value [-6mb] for setting [indices.memory.min_index_buffer_size] must be >= 0b", e.getMessage());
254+
assertEquals("failed to parse value [-6mb] for setting [indices.memory.min_index_buffer_size], must be >= [0]", e.getMessage());
255255
assertSettingDeprecationsAndWarnings(new Setting<?>[0],
256256
"Values less than -1 bytes are deprecated and will not be supported in the next major version: [-6mb]");
257257
}
@@ -276,7 +276,7 @@ public void testNegativeMaxIndexBufferSize() {
276276
Exception e = expectThrows(IllegalArgumentException.class,
277277
() -> new MockController(Settings.builder()
278278
.put("indices.memory.max_index_buffer_size", "-6mb").build()));
279-
assertEquals("Failed to parse value [-6mb] for setting [indices.memory.max_index_buffer_size] must be >= -1b", e.getMessage());
279+
assertEquals("failed to parse value [-6mb] for setting [indices.memory.max_index_buffer_size], must be >= [-1]", e.getMessage());
280280
assertSettingDeprecationsAndWarnings(new Setting<?>[0],
281281
"Values less than -1 bytes are deprecated and will not be supported in the next major version: [-6mb]");
282282
}

0 commit comments

Comments
 (0)