Skip to content

Commit cdecfaa

Browse files
committed
Fix ExecutingPolicyDocTests
An earlier commit 6d8b841 contains a silly mistake in a test. This fixes that. Relates #72931
1 parent 6d8b841 commit cdecfaa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/monitoring/collector/enrich/ExecutingPolicyDocTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ public void testToXContent() throws IOException {
124124
+ ","
125125
+ "\"cancellable\":"
126126
+ executingPolicy.getTaskInfo().isCancellable()
127-
+ (executingPolicy.getTaskInfo().isCancellable()
128-
? ",\"cancelled\":" + executingPolicy.getTaskInfo().isCancellable()
129-
: "")
127+
+ (executingPolicy.getTaskInfo().isCancellable() ? ",\"cancelled\":" + executingPolicy.getTaskInfo().isCancelled() : "")
130128
+ ","
131129
+ header.map(entry -> String.format(Locale.ROOT, "\"headers\":{\"%s\":\"%s\"}", entry.getKey(), entry.getValue()))
132130
.orElse("\"headers\":{}")

0 commit comments

Comments
 (0)