Skip to content

Commit

Permalink
Wait for initial config to appear before starting test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls committed Dec 20, 2024
1 parent e8e9292 commit 4cf05c3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public abstract class BaseApplication {
public abstract void doLog(String message);

public void run() throws InterruptedException {
if (!waitForCondition(() -> null != getLogInjectionEnabled())) {
throw new RuntimeException("Logs injection config was never received");
}

doLog("BEFORE FIRST SPAN");

firstTracedMethod();
Expand Down

0 comments on commit 4cf05c3

Please sign in to comment.