We’re running integration tests which dirty the Spring context between test runs with:
@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_EACH_TEST_METHOD)
This works. BUT: after each test is run, Axon will take an additional 1 minute for all of the connections, threads, etc to time out, after each test.
How do I properly reset/shutdown the Spring context with Axon running in it between tests?
I already tried applicationContext.getBean(EmbeddedEventStore::class.java).shutDown() but this let’s the test fail.