Reset flag after each test as well to avoid side effects

This commit is contained in:
Stephane Nicoll 2019-06-03 13:29:35 +02:00
parent f30e29a4ad
commit ae5b5be597

View File

@ -16,6 +16,7 @@
package org.springframework.boot.autoconfigure.reactor.core;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Hooks;
@ -39,6 +40,7 @@ class ReactorCoreAutoConfigurationTests {
.withConfiguration(AutoConfigurations.of(ReactorCoreAutoConfiguration.class));
@BeforeEach
@AfterEach
void resetDebugFlag() {
Hooks.resetOnOperatorDebug();
}