Hi,

I just noticed the following log while debugging some test context cache optimizations in one of my projects:

19:44:41.758 [Test worker] DEBUG o.s.t.c.s... - Before test class: context [DefaultTestContext@209b736 ... classes = '{class com.example.Application, class com.example.Application}' ...], class annotated with @DirtiesContext [false] with mode [null].

It's trimmed down, but as you can see classes contains the same class twice. This seems to be happen when I explicitly declare the classes on @SpringBootTest as follows:

@SpringBootTest(classes = {Application.class})

While not critical at all, I guess we can make an effort to avoid the duplicates. That should fix the logs and maybe saves a few cycles on the road (although that impact should be veeery small as the duplicates are filtered in SpringApplication the latest).

Let me know what you think. Cheers, Christoph

Comment From: philwebb

Thanks @dreis2211. I merged this into 2.3.x, 2.4.x and master.

Comment From: dreis2211

@philwebb Thanks. On that note: is there a 2.5.x / master pipeline on Concourse yet?

Comment From: snicoll

is there a 2.5.x / master pipeline on Concourse yet?

Yes

Comment From: dreis2211

@snicoll Thanks, but the page is blank for me. Also, the build status badge inside the README can't be displayed at the moment. Seems like a permission problem.

Comment From: wilkinsona

The pipeline should be visible now.

Comment From: dreis2211

Indeed. Thanks