Fix merge scheduler test that depends on the number of processors

This commit is contained in:
Jim Ferenczi 2017-02-28 11:43:35 +01:00
parent 0c03d0056c
commit 17a0b4e69c
1 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ public class MergeSchedulerSettingsTests extends ESTestCase {
assertThat(exc.getMessage(), containsString("maxThreadCount (= 40) should be <= maxMergeCount (= 30)"));
exc = expectThrows(IllegalArgumentException.class,
() -> finalSettings.updateIndexMetaData(createMetaData(-1, 3, -1)));
assertThat(exc.getMessage(), containsString("should be <= maxMergeCount (= 3)"));
() -> finalSettings.updateIndexMetaData(createMetaData(-1, 3, 8)));
assertThat(exc.getMessage(), containsString("maxThreadCount (= 4) should be <= maxMergeCount (= 3)"));
}
}