File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
temporal-testing/src/test/java/io/temporal/testing Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 66import io .grpc .StatusRuntimeException ;
77import io .temporal .api .common .v1 .WorkflowExecution ;
88import io .temporal .api .enums .v1 .TimeoutType ;
9- import io .temporal .client .WorkflowClient ;
10- import io .temporal .client .WorkflowFailedException ;
11- import io .temporal .client .WorkflowOptions ;
12- import io .temporal .client .WorkflowServiceException ;
13- import io .temporal .client .WorkflowStub ;
9+ import io .temporal .client .*;
1410import io .temporal .failure .TimeoutFailure ;
1511import io .temporal .worker .Worker ;
1612import io .temporal .workflow .SignalMethod ;
@@ -207,7 +203,10 @@ public void timeskippingWorksForBothTypesOfUntypedStubs() {
207203 client .newUntypedWorkflowStub ("ConfigurableSleepWorkflow" , workflowAOptions );
208204 WorkflowExecution executionB = stubB .start (durationToSleep );
209205
210- WorkflowStub stubBPrime = client .newUntypedWorkflowStub (executionB , Optional .empty ());
206+ WorkflowStub stubBPrime =
207+ client .newUntypedWorkflowStub (
208+ Optional .empty (),
209+ WorkflowTargetOptions .newBuilder ().setWorkflowExecution (executionB ).build ());
211210 waitForWorkflow (stubBPrime , "newUntypedStubForWorkflowExecution" , durationToWait );
212211 }
213212
You can’t perform that action at this time.
0 commit comments