Ensures that context is refreshed for the disabled sleuth test
This commit is contained in:
@@ -30,6 +30,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.system.CapturedOutput;
|
||||
import org.springframework.boot.test.system.OutputCaptureExtension;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.annotation.DirtiesContext;
|
||||
import org.springframework.test.context.ActiveProfiles;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
@@ -40,6 +41,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
classes = TraceAutoConfigurationWithDisabledSleuthTests.Config.class)
|
||||
@ActiveProfiles("disabled")
|
||||
@ExtendWith(OutputCaptureExtension.class)
|
||||
@DirtiesContext
|
||||
public class TraceAutoConfigurationWithDisabledSleuthTests {
|
||||
|
||||
private static final Log log = LogFactory
|
||||
|
||||
Reference in New Issue
Block a user