Skip to content

Commit

Permalink
TEMP
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls committed Dec 20, 2024
1 parent 003528e commit ed01097
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ 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 initalized");
}

doLog("BEFORE FIRST SPAN");

firstTracedMethod();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ abstract class LogInjectionSmokeTest extends AbstractSmokeTest {

assert new File(loggingJar).isFile()

outputLogFile = File.createTempFile("logTest", ".log")
outputJsonLogFile = File.createTempFile("logTest", ".log")
outputLogFile = new File(buildDirectory + "/reports/logTest"+System.nanoTime() + ".log")
outputLogFile.createNewFile()
outputJsonLogFile = new File(buildDirectory + "/reports/logTestJson"+System.nanoTime() + ".log")
outputJsonLogFile.createNewFile()

List<String> command = new ArrayList<>()
command.add(javaPath())
Expand Down Expand Up @@ -143,8 +145,8 @@ abstract class LogInjectionSmokeTest extends AbstractSmokeTest {
abstract backend()

def cleanupSpec() {
outputLogFile?.delete()
outputJsonLogFile?.delete()
// outputLogFile?.delete()
// outputJsonLogFile?.delete()
}

def assertRawLogLinesWithoutInjection(List<String> logLines, String firstTraceId, String firstSpanId, String secondTraceId, String secondSpanId,
Expand Down

0 comments on commit ed01097

Please sign in to comment.