Avoid use of forbidden method in test

This commit is contained in:
Jason Tedor 2015-08-07 19:09:52 -04:00
parent 7cf94b0d90
commit f8415ae7ca
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ public class ScriptServiceTests extends ESTestCase {
buildScriptService(Settings.EMPTY);
int numberOfCompilations = randomIntBetween(1, 1024);
for (int i = 0; i < numberOfCompilations; i++) {
scriptService.compile(new Script(String.format("%d+%d", i, i), ScriptType.INLINE, "test", null), randomFrom(scriptContexts));
scriptService.compile(new Script(i + " + " + i, ScriptType.INLINE, "test", null), randomFrom(scriptContexts));
}
assertEquals(numberOfCompilations, scriptService.stats().getCompilations());
}