Skip to content

Commit 8e327c1

Browse files
committed
add more logs
1 parent a9de532 commit 8e327c1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class WorkerVersioningTest {
2828
@Autowired ConfigurableApplicationContext applicationContext;
2929
@Autowired WorkflowClient workflowClient;
3030

31-
private static final Logger log = LoggerFactory.getLogger("sleep-activity");
31+
private static final Logger log = LoggerFactory.getLogger("worker-versioning");
3232

3333
@BeforeAll
3434
static void checkDockerService() {
@@ -41,7 +41,7 @@ static void checkDockerService() {
4141
"new condition"
4242
+ (useDocker == null || (useDocker != null && useDocker.equalsIgnoreCase("true"))));
4343
Assumptions.assumeTrue(
44-
useDocker == null || (useDocker != null && useDocker.equalsIgnoreCase("true")),
44+
useDocker != null && useDocker.equalsIgnoreCase("true"),
4545
"Skipping tests because USE_DOCKER_SERVICE is not set");
4646
}
4747

@@ -54,6 +54,7 @@ void setUp() {
5454
@Test
5555
@Timeout(value = 10)
5656
public void testAutoDiscovery() {
57+
log.info("testAutoDiscovery started");
5758
workflowClient
5859
.getWorkflowServiceStubs()
5960
.blockingStub()
@@ -63,10 +64,12 @@ public void testAutoDiscovery() {
6364
.setDeploymentName("dname")
6465
.setVersion("dname.bid")
6566
.build());
67+
log.info("testAutoDiscovery 1");
6668

6769
TestWorkflow testWorkflow =
6870
workflowClient.newWorkflowStub(
6971
TestWorkflow.class, WorkflowOptions.newBuilder().setTaskQueue("UnitTest").build());
72+
log.info("testAutoDiscovery 2");
7073
WorkflowExecution we1 = WorkflowClient.start(testWorkflow::execute, "hi");
7174
workflowClient.newUntypedWorkflowStub(we1.getWorkflowId()).getResult(String.class);
7275
// Should've used pinned (via default)
@@ -93,6 +96,7 @@ public void testAutoDiscovery() {
9396
e.getEventType() == EventType.EVENT_TYPE_WORKFLOW_TASK_COMPLETED
9497
&& e.getWorkflowTaskCompletedEventAttributes().getVersioningBehavior()
9598
== VersioningBehavior.VERSIONING_BEHAVIOR_AUTO_UPGRADE));
99+
log.info("testAutoDiscovery done");
96100
}
97101

98102
@ComponentScan(

0 commit comments

Comments
 (0)