Skip to content

Commit 55798c3

Browse files
committed
fix(AnalyzerResultBuilderTest): Do not index graphs by project type
The key to the graphs is the manager name. Avoid the problem altogether by using the `withResolvedScopes()` on the `AnalyzerResult` directly. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 5536c8a commit 55798c3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

analyzer/src/test/kotlin/AnalyzerResultBuilderTest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,7 @@ class AnalyzerResultBuilderTest : WordSpec() {
274274
.addResult(analyzerResult2)
275275
.build()
276276

277-
mergedResults.projects.map {
278-
it.withResolvedScopes(mergedResults.dependencyGraphs[it.id.type])
279-
} shouldBe setOf(
277+
mergedResults.withResolvedScopes().projects shouldBe setOf(
280278
project1,
281279
project2
282280
)

0 commit comments

Comments
 (0)