-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Avoid duplicate classes in MergedContextConfiguration #24532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid duplicate classes in MergedContextConfiguration #24532
Conversation
...t/src/main/java/org/springframework/boot/test/context/SpringBootTestContextBootstrapper.java
Outdated
Show resolved
Hide resolved
Remove duplicate config attribute classes by using a `Set` rather than a `List` in the `SpringBootTestContextBootstrapper`. See gh-24532
Thanks @dreis2211. I merged this into 2.3.x, 2.4.x and master. |
@philwebb Thanks. On that note: is there a 2.5.x / master pipeline on Concourse yet? |
|
@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. |
The pipeline should be visible now. |
Indeed. Thanks |
Hi,
I just noticed the following log while debugging some test context cache optimizations in one of my projects:
It's trimmed down, but as you can see
classes
contains the same class twice. This seems to be happen when I explicitly declare theclasses
on@SpringBootTest
as follows: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