Skip to content

Commit 4fcd998

Browse files
committed
Fix IntegrationAutoConfigurationTests for Java 21
1 parent 0261784 commit 4fcd998

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/integration/IntegrationAutoConfigurationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ void integrationManagementInstrumentedWithObservation() {
531531
@EnabledForJreRange(min = JRE.JAVA_21)
532532
void integrationVirtualThreadsEnabled() {
533533
this.contextRunner.withPropertyValues("spring.threads.virtual.enabled=true")
534+
.withConfiguration(AutoConfigurations.of(TaskSchedulingAutoConfiguration.class))
534535
.run((context) -> assertThat(context).hasSingleBean(TaskScheduler.class)
535536
.getBean(IntegrationContextUtils.TASK_SCHEDULER_BEAN_NAME, TaskScheduler.class)
536537
.isInstanceOf(SimpleAsyncTaskScheduler.class)

0 commit comments

Comments
 (0)