Skip to content

Commit f7e5086

Browse files
committed
GH-430 - Avoid duplicate inclusions of modules in test executions.
1 parent 00ee899 commit f7e5086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-modulith-test/src/main/java/org/springframework/modulith/test/ModuleTestExecution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private ModuleTestExecution(ApplicationModuleTest annotation, ApplicationModules
7979

8080
var bootstrapDependencies = module.getBootstrapDependencies(modules,
8181
bootstrapMode.getDepth());
82-
return Stream.concat(bootstrapDependencies, extraIncludes.stream()).toList();
82+
return Stream.concat(bootstrapDependencies, extraIncludes.stream()).distinct().toList();
8383
});
8484

8585
if (annotation.verifyAutomatically()) {

0 commit comments

Comments
 (0)