Skip to content

Commit

Permalink
Adjust LinkWarningTest to not count the aggregate warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jchyb committed Oct 7, 2024
1 parent 513664a commit 09a99e7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class LinkWarningsTest extends ScaladocTest("noLinkWarnings"):

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

0 comments on commit 09a99e7

Please sign in to comment.