File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
src/test/scala/com/github/takezoe/slick/blocking Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,6 @@ scalacOptions ++= {
37
37
}
38
38
}
39
39
40
- Test / scalacOptions ++= {
41
- if (scalaBinaryVersion.value == " 3" ) {
42
- Seq (" -source:3.0-migration" )
43
- } else {
44
- Nil
45
- }
46
- }
47
-
48
40
Test / fork := true
49
41
50
42
Test / publishArtifact := false
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class SlickBlockingAPISpecH2
17
17
extends SlickBlockingAPISpec (
18
18
BlockingH2Driver
19
19
) {
20
- protected override val db = Tables .profile.blockingApi.Database .forURL(" jdbc:h2:mem:test;TRACE_LEVEL_FILE=4" )
20
+ protected override lazy val db = Tables .profile.blockingApi.Database .forURL(" jdbc:h2:mem:test;TRACE_LEVEL_FILE=4" )
21
21
}
22
22
23
23
class SlickBlockingAPISpecMySQL56 extends SlickBlockingAPISpecMySQL (" 5.6" )
@@ -50,7 +50,7 @@ abstract class SlickBlockingAPISpec(p: BlockingJdbcProfile) extends AnyFunSuite
50
50
import Tables .profile .blockingApi ._
51
51
import Tables ._
52
52
53
- protected val db : Tables .profile.api.Database
53
+ protected def db : Tables .profile.api.Database
54
54
55
55
private final def testWithSession [A ](f : Tables .profile.blockingApi.Session => A ): A = {
56
56
db.withSession { implicit session =>
You can’t perform that action at this time.
0 commit comments