Skip to content

Commit 4a06092

Browse files
authored
Update MySQLControllerSpec.scala
1 parent 5127989 commit 4a06092

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker-controller-scala-mysql/src/test/scala/com/github/j5ik2o/dockerController/MySQLControllerSpec.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ class MySQLControllerSpec extends AnyFreeSpec with DockerControllerSpecSupport w
4040
)
4141
)
4242
)
43+
44+
override protected def afterStartContainers(): Unit = {
45+
val flywayContext = createFlywayContext(FlywayConfig(Seq("flyway")))
46+
flywayContext.flyway.migrate()
47+
}
4348

4449
"MySQLController" - {
4550
"run" in {
@@ -73,9 +78,4 @@ class MySQLControllerSpec extends AnyFreeSpec with DockerControllerSpecSupport w
7378
}
7479
}
7580

76-
override protected def afterStartContainers(): Unit = {
77-
val flywayContext = createFlywayContext(FlywayConfig(Seq("flyway")))
78-
flywayContext.flyway.migrate()
79-
}
80-
8181
}

0 commit comments

Comments
 (0)