Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
korniltsev committed Apr 23, 2024
1 parent 047b9ee commit a778fcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, macos]
java: ['8', '11', '17']
java: ['8', '11', '17', '21']
steps:
- uses: actions/checkout@v2
- name: Set up JDK
Expand All @@ -26,4 +26,4 @@ jobs:
- name: Test with Gradle
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with:
arguments: test
arguments: test --stacktrace
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.pyroscope.javaagent.api.Logger;
import io.pyroscope.javaagent.api.ProfilingScheduler;
import io.pyroscope.javaagent.config.Config;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
Expand Down Expand Up @@ -45,6 +46,11 @@ void setUp() {
.build();
}

@AfterEach
void tearDown() {
PyroscopeAgent.stop();
}

@Test
void startupTestWithEnabledAgent() {
PyroscopeAgent.start(optionsAgentEnabled);
Expand Down

0 comments on commit a778fcc

Please sign in to comment.