Skip to content

Commit ed01097

Browse files
committed
TEMP
1 parent 003528e commit ed01097

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ 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 initalized");
20-
}
21-
2218
doLog("BEFORE FIRST SPAN");
2319

2420
firstTracedMethod();

dd-smoke-tests/log-injection/src/test/groovy/datadog/smoketest/LogInjectionSmokeTest.groovy

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ abstract class LogInjectionSmokeTest extends AbstractSmokeTest {
6464

6565
assert new File(loggingJar).isFile()
6666

67-
outputLogFile = File.createTempFile("logTest", ".log")
68-
outputJsonLogFile = File.createTempFile("logTest", ".log")
67+
outputLogFile = new File(buildDirectory + "/reports/logTest"+System.nanoTime() + ".log")
68+
outputLogFile.createNewFile()
69+
outputJsonLogFile = new File(buildDirectory + "/reports/logTestJson"+System.nanoTime() + ".log")
70+
outputJsonLogFile.createNewFile()
6971

7072
List<String> command = new ArrayList<>()
7173
command.add(javaPath())
@@ -143,8 +145,8 @@ abstract class LogInjectionSmokeTest extends AbstractSmokeTest {
143145
abstract backend()
144146

145147
def cleanupSpec() {
146-
outputLogFile?.delete()
147-
outputJsonLogFile?.delete()
148+
// outputLogFile?.delete()
149+
// outputJsonLogFile?.delete()
148150
}
149151

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

0 commit comments

Comments
 (0)