I’m trying to make a SpringBootTest to check context (just start the app for second on H2 DB). I’ve faced a problem: getting a circular dependencies error when starting on test. One of dependency is PrometheusMeterRegistry.
Interesting that I don’t have such error when starting normally.
What am I missing?
I only switched PostgreSQL DB to H2, changed properties for test DB and suddenly it fails to start.