Skip to content

Commit 4f4fcf0

Browse files
snicollwilkinsona
authored andcommitted
Reset flag after each test as well to avoid side effects
1 parent 09dd986 commit 4f4fcf0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/reactor/core/ReactorCoreAutoConfigurationTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.boot.autoconfigure.reactor.core;
1818

19+
import org.junit.jupiter.api.AfterEach;
1920
import org.junit.jupiter.api.BeforeEach;
2021
import org.junit.jupiter.api.Test;
2122
import reactor.core.publisher.Hooks;
@@ -39,6 +40,7 @@ class ReactorCoreAutoConfigurationTests {
3940
.withConfiguration(AutoConfigurations.of(ReactorCoreAutoConfiguration.class));
4041

4142
@BeforeEach
43+
@AfterEach
4244
void resetDebugFlag() {
4345
Hooks.resetOnOperatorDebug();
4446
}

0 commit comments

Comments
 (0)