From 43fc69f09a335c3781f1cb7820a6b0e71bb86792 Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Sat, 31 Aug 2024 14:21:41 +0900 Subject: [PATCH] remove `-source:3.0-migration` --- build.sbt | 8 -------- .../takezoe/slick/blocking/SlickBlockingAPISpec.scala | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/build.sbt b/build.sbt index dfd54f6..300e971 100644 --- a/build.sbt +++ b/build.sbt @@ -37,14 +37,6 @@ scalacOptions ++= { } } -Test / scalacOptions ++= { - if (scalaBinaryVersion.value == "3") { - Seq("-source:3.0-migration") - } else { - Nil - } -} - Test / fork := true Test / publishArtifact := false diff --git a/src/test/scala/com/github/takezoe/slick/blocking/SlickBlockingAPISpec.scala b/src/test/scala/com/github/takezoe/slick/blocking/SlickBlockingAPISpec.scala index 692edc2..b0dcc9c 100644 --- a/src/test/scala/com/github/takezoe/slick/blocking/SlickBlockingAPISpec.scala +++ b/src/test/scala/com/github/takezoe/slick/blocking/SlickBlockingAPISpec.scala @@ -17,7 +17,7 @@ class SlickBlockingAPISpecH2 extends SlickBlockingAPISpec( BlockingH2Driver ) { - protected override val db = Tables.profile.blockingApi.Database.forURL("jdbc:h2:mem:test;TRACE_LEVEL_FILE=4") + protected override lazy val db = Tables.profile.blockingApi.Database.forURL("jdbc:h2:mem:test;TRACE_LEVEL_FILE=4") } class SlickBlockingAPISpecMySQL56 extends SlickBlockingAPISpecMySQL("5.6") @@ -50,7 +50,7 @@ abstract class SlickBlockingAPISpec(p: BlockingJdbcProfile) extends AnyFunSuite import Tables.profile.blockingApi._ import Tables._ - protected val db: Tables.profile.api.Database + protected def db: Tables.profile.api.Database private final def testWithSession[A](f: Tables.profile.blockingApi.Session => A): A = { db.withSession { implicit session =>