spring-lemon icon indicating copy to clipboard operation
spring-lemon copied to clipboard

lemon-demo-reactive test fails when run first time

Open naturalprogrammer opened this issue 2 years ago • 0 comments

Running tests on lemon-demo-reactive requires mongodn to be running locally, and even then fails when run first time, If you run it second time, it passes.

Looks like it requires lemontest database to pre-exist. Couldn't we fix it by creating it beforehand? Or better yet, would be great if we could point it to an in-memory DB, or Docker or do something robust about it.

Technical hint: See the @SpringBootTest annotations on AbstractTests, and also MyTestUtils.initDatabase.

naturalprogrammer avatar Aug 31 '21 14:08 naturalprogrammer