Skip to content

Commit 149c15a

Browse files
committed
Manually start the worker
1 parent b3d2c94 commit 149c15a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

temporal-spring-boot-autoconfigure/src/test/java/io/temporal/spring/boot/autoconfigure/WorkerVersioningTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.temporal.common.WorkflowExecutionHistory;
1212
import io.temporal.spring.boot.autoconfigure.workerversioning.TestWorkflow;
1313
import io.temporal.spring.boot.autoconfigure.workerversioning.TestWorkflow2;
14+
import io.temporal.worker.WorkerFactory;
1415
import org.junit.jupiter.api.*;
1516
import org.springframework.beans.factory.annotation.Autowired;
1617
import org.springframework.boot.test.context.SpringBootTest;
@@ -43,6 +44,9 @@ void setUp() {
4344
@Test
4445
@Timeout(value = 10)
4546
public void testAutoDiscovery() {
47+
WorkerFactory workerFactory = applicationContext.getBean(WorkerFactory.class);
48+
workerFactory.start();
49+
4650
workflowClient
4751
.getWorkflowServiceStubs()
4852
.blockingStub()

0 commit comments

Comments
 (0)