File tree Expand file tree Collapse file tree
agent_api/src/test/java/helpers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import dev .aikido .agent_api .helpers .logging .Logger ;
77import org .junit .jupiter .api .BeforeEach ;
88import org .junit .jupiter .api .Test ;
9+ import org .junitpioneer .jupiter .ClearEnvironmentVariable ;
910import org .junitpioneer .jupiter .SetEnvironmentVariable ;
1011import org .junitpioneer .jupiter .StdIo ;
1112import org .junitpioneer .jupiter .StdOut ;
@@ -89,6 +90,7 @@ public void testLoggerIsDebug(StdOut out) {
8990
9091 @ Test
9192 @ SetEnvironmentVariable (key = "AIKIDO_DEBUG" , value = "true" )
93+ @ ClearEnvironmentVariable (key = "AIKIDO_LOG_LEVEL" )
9294 @ StdIo
9395 public void testLoggerIsAikidoDebug (StdOut out ) {
9496 // Check it reads environment variable
@@ -132,6 +134,7 @@ public void testDebugEnvTakesPrecedent(StdOut out) {
132134
133135 @ Test
134136 @ SetEnvironmentVariable (key = "AIKIDO_LOG_LEVEL" , value = "fatal" )
137+ @ ClearEnvironmentVariable (key = "AIKIDO_DEBUG" )
135138 @ StdIo
136139 public void testLoggerReadsEnv2 (StdOut out ) {
137140 // Check it reads environment variable
You can’t perform that action at this time.
0 commit comments