[TEST] don't use null script lang in WatcherUtilsTests
same as elastic/x-pack@9e1e0988c1 but for testSerializeSearchRequest this time. Original commit: elastic/x-pack-elasticsearch@aa7e3814b6
This commit is contained in:
parent
edb8c12f75
commit
ad5606d1f7
|
@ -108,7 +108,7 @@ public class WatcherUtilsTests extends ESTestCase {
|
|||
}
|
||||
String text = randomAsciiOfLengthBetween(1, 5);
|
||||
ScriptService.ScriptType scriptType = randomFrom(ScriptService.ScriptType.values());
|
||||
expectedTemplate = new Script(text, scriptType, randomBoolean() ? null : "mustache", params);
|
||||
expectedTemplate = new Script(text, scriptType, "mustache", params);
|
||||
request = new WatcherSearchTemplateRequest(expectedIndices, expectedTypes, expectedSearchType,
|
||||
expectedIndicesOptions, expectedTemplate);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue