diff --git a/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/xpack/watcher/support/WatcherUtilsTests.java b/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/xpack/watcher/support/WatcherUtilsTests.java index 368ccd3e8be..f8498fe99d0 100644 --- a/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/xpack/watcher/support/WatcherUtilsTests.java +++ b/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/xpack/watcher/support/WatcherUtilsTests.java @@ -206,7 +206,7 @@ public class WatcherUtilsTests extends ESTestCase { } String text = randomAsciiOfLengthBetween(1, 5); ScriptService.ScriptType scriptType = randomFrom(ScriptService.ScriptType.values()); - template = new Script(text, scriptType, randomBoolean() ? null : "mustache", params); + template = new Script(text, scriptType, "mustache", params); builder.field("template", template); } builder.endObject();