Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanos committed Dec 2, 2024
1 parent bb336bf commit 654c08c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void validate() {
void validateWaitForCompleted() {
if (waitForStage != null && waitForStage != WorkflowUpdateStage.COMPLETED) {
throw new IllegalArgumentException(
"waitForStage must be unspecified or " + WorkflowUpdateStage.COMPLETED);
"waitForStage must be unspecified or " + WorkflowUpdateStage.COMPLETED);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,14 @@ public void failWhenUpdatedIsRejected() {
WorkflowUpdateException.class,
() ->
WorkflowClient.startUpdateWithStart(
workflow::update,
-1, // cause for rejection
"Hello Update",
UpdateOptions.newBuilder(String.class)
.setWaitForStage(WorkflowUpdateStage.COMPLETED)
.build(),
startOp).getResult());
workflow::update,
-1, // cause for rejection
"Hello Update",
UpdateOptions.newBuilder(String.class)
.setWaitForStage(WorkflowUpdateStage.COMPLETED)
.build(),
startOp)
.getResult());
}

@Test
Expand Down

0 comments on commit 654c08c

Please sign in to comment.