Skip to content

Commit

Permalink
remove syncOperationCancelled test
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Dec 30, 2024
1 parent 002841f commit 7356e2a
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,6 @@ public void syncOperationImmediatelyCancelled() {
"operation canceled before it was started", canceledFailure.getOriginalMessage());
}

@Test
public void syncOperationCancelled() {
TestWorkflows.TestWorkflow1 workflowStub =
testWorkflowRule.newWorkflowStubTimeoutOptions(TestWorkflows.TestWorkflow1.class);
WorkflowFailedException exception =
Assert.assertThrows(WorkflowFailedException.class, () -> workflowStub.execute(""));
Assert.assertTrue(exception.getCause() instanceof NexusOperationFailure);
NexusOperationFailure nexusFailure = (NexusOperationFailure) exception.getCause();
Assert.assertTrue(nexusFailure.getCause() instanceof CanceledFailure);
}

public static class TestNexus implements TestWorkflows.TestWorkflow1 {
@Override
public String execute(String input) {
Expand Down

0 comments on commit 7356e2a

Please sign in to comment.