Skip to content

Commit 23cd87f

Browse files
committed
monitor/BasicTest test fixed
1 parent 39eb0ff commit 23cd87f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

visualvm/libs.profiler/lib.profiler/test/qa-functional/src/org/graalvm/visualvm/lib/jfluid/tests/jfluid/monitor/BasicTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static Test suite() {
5555
"testBasicMemory",
5656
"testCascadeThreads",
5757
"testCascadeThreadsCPU",
58-
"testCascadeThreadsMemory").enableModules(".*").clusters(".*").gui(false));
58+
"testCascadeThreadsMemory").honorAutoloadEager(true).enableModules(".*").clusters(".*").gui(false));
5959
}
6060

6161
//~ Methods ------------------------------------------------------------------------------------------------------------------

visualvm/libs.profiler/lib.profiler/test/qa-functional/src/org/graalvm/visualvm/lib/jfluid/tests/jfluid/monitor/MonitorTestCase.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected ProfilerEngineSettings initMonitorTest(String projectName, String clas
129129
ProfilerEngineSettings settings = initTest(projectName, className, null);
130130
//defaults
131131
settings.setThreadCPUTimerOn(false);
132-
132+
settings.setThreadsSamplingEnabled(true);
133133
return settings;
134134
}
135135

@@ -233,7 +233,8 @@ protected void startMonitorTest(ProfilerEngineSettings settings, int times, long
233233
state = toBinState(td.getStateAt(tdindex));
234234

235235
Color color = td.getThreadStateColorAt(tdindex);
236-
assertNotNull("Threads state color is null", color);
236+
// new threads have null color before their start
237+
// assertNotNull("Threads state color is null", color);
237238
tdindex++;
238239
}
239240

0 commit comments

Comments
 (0)