Skip to content

Commit 3b8b104

Browse files
committed
GH-429 - Avoid duplicate inclusions of modules in test executions.
1 parent 85520fe commit 3b8b104

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
@@ -80,7 +80,7 @@ private ModuleTestExecution(ApplicationModuleTest annotation, ApplicationModules
8080

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

8686
if (annotation.verifyAutomatically()) {

0 commit comments

Comments
 (0)