Closed
Description
When building v3.5.0 under WSL (Ubuntu 20.04), the following test fails:
./gradlew :spring-boot-project:spring-boot:test --tests "org.springframework.boot.context.properties.ConfigurationPropertiesTests.loadWhenBindingWithParentContextShouldBind"
The failure occurs in this call chain:
loadWhenBindingWithParentContextShouldBind
-> load(new Class<?>[] { BasicConfiguration.class, BasicPropertiesConsumer.class }, "name=child")
-> this.context.refresh()
-> obtainFreshBeanFactory()
-> refreshBeanFactory()
-> !this.refreshed.compareAndSet(false, true) == true
However, this test passes successfully in:
- Windows 11
- Ubuntu 22.04
Please help investigate why it fails specifically in WSL on Ubuntu 20.04.