Skip to content

Commit 5d42c18

Browse files
authored
Fixed workflowsWithFailedPromisesCanBeCancelled test (#199)
1 parent 163502b commit 5d42c18

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/java/com/uber/cadence/workflow/WorkflowTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,8 @@ public String execute(String taskList) {
661661
}
662662

663663
@Test
664-
public void WorkflowsWithFailedPromisesCanBeCancelled() {
665-
worker.registerWorkflowImplementationTypes(
666-
TestCancellationForWorkflowsWithFailedPromises.class);
667-
testEnvironment.start();
664+
public void workflowsWithFailedPromisesCanBeCancelled() {
665+
startWorkerFor(TestCancellationForWorkflowsWithFailedPromises.class);
668666
WorkflowStub client =
669667
workflowClient.newUntypedWorkflowStub(
670668
"TestWorkflow1::execute", newWorkflowOptionsBuilder(taskList).build());

0 commit comments

Comments
 (0)