Test: Fix last reference to SearchScript (#34731)

This was accidentally left over when converting to FieldScript.

closes #34683
This commit is contained in:
Ryan Ernst 2018-10-23 17:26:17 -07:00 committed by GitHub
parent da20dfd81c
commit 596b5cf108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -176,11 +176,6 @@ public class PainlessDomainSplitIT extends ESRestTestCase {
tests.add(new TestConfiguration(null, "shishi.xn--fiqs8s","shishi.xn--fiqs8s"));
}
public void testEmptyToLetBuildPass() {
// remove this once one of the awaitsfixes are removed!!
}
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/34683")
public void testIsolated() throws Exception {
Settings.Builder settings = Settings.builder()
.put(IndexMetaData.INDEX_NUMBER_OF_SHARDS_SETTING.getKey(), 1)

View File

@ -8,8 +8,8 @@ package org.elasticsearch.xpack.ml;
import org.elasticsearch.painless.spi.PainlessExtension;
import org.elasticsearch.painless.spi.Whitelist;
import org.elasticsearch.painless.spi.WhitelistLoader;
import org.elasticsearch.script.FieldScript;
import org.elasticsearch.script.ScriptContext;
import org.elasticsearch.script.SearchScript;
import java.util.Collections;
import java.util.List;
@ -21,6 +21,6 @@ public class MachineLearningPainlessExtension implements PainlessExtension {
@Override
public Map<ScriptContext<?>, List<Whitelist>> getContextWhitelists() {
return Collections.singletonMap(SearchScript.CONTEXT, Collections.singletonList(WHITELIST));
return Collections.singletonMap(FieldScript.CONTEXT, Collections.singletonList(WHITELIST));
}
}