Skip to content

Commit 4cf05c3

Browse files
committed
Wait for initial config to appear before starting test
1 parent e8e9292 commit 4cf05c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dd-smoke-tests/log-injection/src/main/java/datadog/smoketest/loginjection/BaseApplication.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ public abstract class BaseApplication {
1515
public abstract void doLog(String message);
1616

1717
public void run() throws InterruptedException {
18+
if (!waitForCondition(() -> null != getLogInjectionEnabled())) {
19+
throw new RuntimeException("Logs injection config was never received");
20+
}
21+
1822
doLog("BEFORE FIRST SPAN");
1923

2024
firstTracedMethod();

0 commit comments

Comments
 (0)