From 0df564a28672ab2f7254674a33bb66a7faba8487 Mon Sep 17 00:00:00 2001 From: Lorenzo Gabriele Date: Mon, 8 Jan 2024 14:47:31 +0100 Subject: [PATCH] fix: Fix tests --- scalalib/test/src/mill/scalalib/HelloWorldTests.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scalalib/test/src/mill/scalalib/HelloWorldTests.scala b/scalalib/test/src/mill/scalalib/HelloWorldTests.scala index 403464071ce..7bceebea13c 100644 --- a/scalalib/test/src/mill/scalalib/HelloWorldTests.scala +++ b/scalalib/test/src/mill/scalalib/HelloWorldTests.scala @@ -692,7 +692,9 @@ object HelloWorldTests extends TestSuite { CrossModuleDeps.cuttingEdge(scala33Version).moduleDeps } "scala-213-depend-on-scala-212-fails" - { - val message = intercept(CrossModuleDeps.cuttingEdge(scala213Version).moduleDeps).getMessage + val message = intercept[Exception]( + CrossModuleDeps.cuttingEdge(scala213Version).moduleDeps + ).getMessage assert(message == "Unable to find compatible cross version between 2.13.8 and 2.12.6,3.2.0") }