Fixed workflowsWithFailedPromisesCanBeCancelled test
@@ -661,10 +661,8 @@ public class WorkflowTest {
}
@Test
- public void WorkflowsWithFailedPromisesCanBeCancelled() {
- worker.registerWorkflowImplementationTypes(
- TestCancellationForWorkflowsWithFailedPromises.class);
- testEnvironment.start();
+ public void workflowsWithFailedPromisesCanBeCancelled() {
+ startWorkerFor(TestCancellationForWorkflowsWithFailedPromises.class);
WorkflowStub client =
workflowClient.newUntypedWorkflowStub(
"TestWorkflow1::execute", newWorkflowOptionsBuilder(taskList).build());
