Skip to content

Commit

Permalink
Fix ExecutingPolicyDocTests
Browse files Browse the repository at this point in the history
An earlier commit 6d8b841 contains a
silly mistake in a test. This fixes that.

Relates #72931
  • Loading branch information
DaveCTurner committed May 17, 2021
1 parent 6d8b841 commit cdecfaa
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ public void testToXContent() throws IOException {
+ ","
+ "\"cancellable\":"
+ executingPolicy.getTaskInfo().isCancellable()
+ (executingPolicy.getTaskInfo().isCancellable()
? ",\"cancelled\":" + executingPolicy.getTaskInfo().isCancellable()
: "")
+ (executingPolicy.getTaskInfo().isCancellable() ? ",\"cancelled\":" + executingPolicy.getTaskInfo().isCancelled() : "")
+ ","
+ header.map(entry -> String.format(Locale.ROOT, "\"headers\":{\"%s\":\"%s\"}", entry.getKey(), entry.getValue()))
.orElse("\"headers\":{}")
Expand Down

0 comments on commit cdecfaa

Please sign in to comment.