From 4305d60fbaa9fb24241e1b7bd4b38b08ecec20c5 Mon Sep 17 00:00:00 2001 From: Katarzyna Marek Date: Tue, 2 Jul 2024 12:05:59 +0200 Subject: [PATCH] chore: move mill test to newest mill version --- tests/slow/src/test/scala/tests/mill/MillLspSuite.scala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/slow/src/test/scala/tests/mill/MillLspSuite.scala b/tests/slow/src/test/scala/tests/mill/MillLspSuite.scala index f7f800229d2..ac416d96db4 100644 --- a/tests/slow/src/test/scala/tests/mill/MillLspSuite.scala +++ b/tests/slow/src/test/scala/tests/mill/MillLspSuite.scala @@ -141,8 +141,6 @@ class MillLspSuite extends BaseImportSuite("mill-import") { | def scalaVersion = "${V.scala213}" | def scalacOptions = Seq("-Xfatal-warnings", "-Ywarn-unused") |} - |/.mill-version - |${V.millVersion} |/foo/src/Warning.scala |import scala.concurrent.Future // unused |object Warning @@ -164,7 +162,11 @@ class MillLspSuite extends BaseImportSuite("mill-import") { // we should still have references despite fatal warning refs <- server.workspaceReferences() _ = assertNoDiff( - refs.references.map(_.symbol).sorted.mkString("\n"), + refs.references + .withFilter(_.location.getUri().endsWith("Warning.scala")) + .map(_.symbol) + .sorted + .mkString("\n"), """|_empty_/A. |_empty_/A.B. |_empty_/Warning.