Skip to content

Commit ffca9bc

Browse files
committed
TEST
1 parent fe39745 commit ffca9bc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

dd-java-agent/src/test/java/jvmbootstraptest/LogManagerSetter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,13 @@ private static void assertProfilingStartupDelayed(final String message) {
138138
}
139139

140140
private static boolean isThreadStarted(final String name, final boolean wait) {
141+
System.out.println("checking for thread " + name + "...");
142+
141143
// Wait up to 10 seconds for thread to appear
142144
for (int i = 0; i < 20; i++) {
143145
for (final Thread thread : Thread.getAllStackTraces().keySet()) {
144146
if (name.equals(thread.getName())) {
147+
System.out.println("...thread " + name + " has started");
145148
return true;
146149
}
147150
}
@@ -154,6 +157,7 @@ private static boolean isThreadStarted(final String name, final boolean wait) {
154157
e.printStackTrace();
155158
}
156159
}
160+
System.out.println("...thread " + name + " has not started");
157161
return false;
158162
}
159163

@@ -166,9 +170,12 @@ private static boolean isProfilingStarted(final boolean wait) {
166170
}
167171

168172
private static boolean isTracerInstalled(final boolean wait) {
173+
System.out.println("checking for tracer install...");
174+
169175
// Wait up to 10 seconds for tracer to get installed
170176
for (int i = 0; i < 20; i++) {
171177
if (AgentTracer.isRegistered()) {
178+
System.out.println("...tracer is installed");
172179
return true;
173180
}
174181
if (!wait) {
@@ -180,6 +187,7 @@ private static boolean isTracerInstalled(final boolean wait) {
180187
e.printStackTrace();
181188
}
182189
}
190+
System.out.println("...tracer is not installed");
183191
return false;
184192
}
185193

dd-java-agent/src/test/java/jvmbootstraptest/MBeanServerBuilderSetter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ private static void customAssert(
6363
}
6464

6565
private static boolean isThreadStarted(final String name, final boolean wait) {
66+
System.out.println("checking for thread " + name + "...");
67+
6668
// Wait up to 10 seconds for thread to appear
6769
for (int i = 0; i < 20; i++) {
6870
for (final Thread thread : Thread.getAllStackTraces().keySet()) {
6971
if (name.equals(thread.getName())) {
72+
System.out.println("...thread " + name + " has started");
7073
return true;
7174
}
7275
}
@@ -79,6 +82,7 @@ private static boolean isThreadStarted(final String name, final boolean wait) {
7982
e.printStackTrace();
8083
}
8184
}
85+
System.out.println("...thread " + name + " has not started");
8286
return false;
8387
}
8488

0 commit comments

Comments
 (0)