File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
agent_api/src/test/java/helpers Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 6
6
import dev .aikido .agent_api .helpers .logging .Logger ;
7
7
import org .junit .jupiter .api .BeforeEach ;
8
8
import org .junit .jupiter .api .Test ;
9
+ import org .junitpioneer .jupiter .ClearEnvironmentVariable ;
9
10
import org .junitpioneer .jupiter .SetEnvironmentVariable ;
10
11
import org .junitpioneer .jupiter .StdIo ;
11
12
import org .junitpioneer .jupiter .StdOut ;
@@ -89,6 +90,7 @@ public void testLoggerIsDebug(StdOut out) {
89
90
90
91
@ Test
91
92
@ SetEnvironmentVariable (key = "AIKIDO_DEBUG" , value = "true" )
93
+ @ ClearEnvironmentVariable (key = "AIKIDO_LOG_LEVEL" )
92
94
@ StdIo
93
95
public void testLoggerIsAikidoDebug (StdOut out ) {
94
96
// Check it reads environment variable
@@ -132,6 +134,7 @@ public void testDebugEnvTakesPrecedent(StdOut out) {
132
134
133
135
@ Test
134
136
@ SetEnvironmentVariable (key = "AIKIDO_LOG_LEVEL" , value = "fatal" )
137
+ @ ClearEnvironmentVariable (key = "AIKIDO_DEBUG" )
135
138
@ StdIo
136
139
public void testLoggerReadsEnv2 (StdOut out ) {
137
140
// Check it reads environment variable
You can’t perform that action at this time.
0 commit comments