Skip to content

Commit bdf9317

Browse files
committed
Adjust LinkWarningTest to not count the aggregate warning
1 parent 513664a commit bdf9317

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scaladoc/test/dotty/tools/scaladoc/no-link-warnings/LinkWarningTest.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class LinkWarningsTest extends ScaladocTest("noLinkWarnings"):
1414

1515
override def runTest = afterRendering {
1616
val diagnostics = summon[DocContext].compilerContext.reportedDiagnostics
17-
assertEquals("There should be exactly one warning", 1, diagnostics.warningMsgs.size)
17+
val filteredWarnings = diagnostics.warningMsgs.filter(_ != "1 warning found")
18+
assertEquals("There should be exactly one warning", 1, filteredWarnings.size)
1819
assertNoErrors(diagnostics)
1920
}

0 commit comments

Comments
 (0)