Skip to content

Commit 7a91f50

Browse files
committed
use log.info
1 parent 2fab1dd commit 7a91f50

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import org.springframework.context.annotation.ComponentScan;
1919
import org.springframework.context.annotation.FilterType;
2020
import org.springframework.test.context.ActiveProfiles;
21+
import org.slf4j.Logger;
22+
import org.slf4j.LoggerFactory;
2123

2224
@SpringBootTest(classes = WorkerVersioningTest.Configuration.class)
2325
@ActiveProfiles(profiles = "worker-versioning")
@@ -26,15 +28,18 @@ public class WorkerVersioningTest {
2628
@Autowired ConfigurableApplicationContext applicationContext;
2729
@Autowired WorkflowClient workflowClient;
2830

31+
private static final Logger log = LoggerFactory.getLogger("sleep-activity");
32+
2933
@BeforeAll
3034
static void checkDockerService() {
3135
String useDocker = System.getenv("USE_DOCKER_SERVICE");
32-
System.out.println("USE_DOCKER_SERVICE123: " + useDocker);
36+
log.info("USE_DOCKER_SERVICE123: " + useDocker);
3337
if (useDocker != null) {
34-
System.out.println("useDocker.equalsIgnoreCase(true): " + useDocker.equalsIgnoreCase("true"));
38+
log.info("useDocker.equalsIgnoreCase(true): " + useDocker.equalsIgnoreCase("true"));
3539
}
40+
log.info("new condition" + (useDocker == null || (useDocker != null && useDocker.equalsIgnoreCase("true"))));
3641
Assumptions.assumeTrue(
37-
useDocker != null && useDocker.equalsIgnoreCase("true"),
42+
useDocker == null || (useDocker != null && useDocker.equalsIgnoreCase("true")),
3843
"Skipping tests because USE_DOCKER_SERVICE is not set");
3944
}
4045

0 commit comments

Comments
 (0)