Skip to content

Commit

Permalink
Fix JvmGcMonitorServiceSettingsTests (elastic#108082)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoop authored May 1, 2024
1 parent 27c9252 commit 1f63166
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void testDisabledSetting() throws InterruptedException {

public void testNegativeSetting() throws InterruptedException {
String collector = randomAlphaOfLength(5);
final String timeValue = "-" + randomTimeValue(2, 1000); // -1 is handled separately
final String timeValue = "-" + randomTimeValue(2, 1000).getStringRep(); // -1 is handled separately
Settings settings = Settings.builder().put("monitor.jvm.gc.collector." + collector + ".warn", timeValue).build();
execute(settings, (command, interval, name) -> null, e -> {
assertThat(e, instanceOf(IllegalArgumentException.class));
Expand Down

0 comments on commit 1f63166

Please sign in to comment.