From bdf9317d9803d128caaec0adaa667997e549c55c Mon Sep 17 00:00:00 2001 From: Jan Chyb Date: Mon, 7 Oct 2024 18:47:26 +0200 Subject: [PATCH] Adjust LinkWarningTest to not count the aggregate warning --- .../tools/scaladoc/no-link-warnings/LinkWarningTest.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scaladoc/test/dotty/tools/scaladoc/no-link-warnings/LinkWarningTest.scala b/scaladoc/test/dotty/tools/scaladoc/no-link-warnings/LinkWarningTest.scala index 1d140315cc10..bcaee696b65c 100644 --- a/scaladoc/test/dotty/tools/scaladoc/no-link-warnings/LinkWarningTest.scala +++ b/scaladoc/test/dotty/tools/scaladoc/no-link-warnings/LinkWarningTest.scala @@ -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) }