Closed as not planned
Closed as not planned
Description
I have recently migrated a springboot v2.7.5 application which uses spring batch to spring boot v3 with jdk 17 . I have a test class which uses @SpringBootTest and one of the test method executes a flow of running a job , running tasklet and running Listener. I am using 2 data sources(h2) . While the tasklet is executed , I get a warning "Closing org.springframework.web.context.support.GenericWebApplicationContext" and Hikari pools starts shutting down resulting in below exception:
"Closing connection (connection evicted)"
When i run the same tests in older version v2.7.5 , the GenericWebApplicationContext is closed after full flow is executed .