Skip to content

Commit fcfeb8b

Browse files
Copilotjohnoliver
andauthored
Fix ProfilerControlTest compilation error: add missing ProfilerControl instantiation and triggerProfile() call
Co-authored-by: johnoliver <1615532+johnoliver@users.noreply.github.com>
1 parent fd13c91 commit fcfeb8b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

agent/agent-tooling/src/test/java/com/microsoft/applicationinsights/agent/internal/profiler/ProfilerControlTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ void triggerProfileWithDefaultDuration() {
3434
AtomicReference<AlertBreach> received = new AtomicReference<>();
3535
Consumer<AlertBreach> handler = received::set;
3636

37+
ProfilerControl control = new ProfilerControl(handler);
38+
String result = control.triggerProfile();
39+
3740
assertThat(result).startsWith("Profile trigger requested");
3841

3942
AlertBreach breach = received.get();

0 commit comments

Comments
 (0)