@@ -14,11 +14,11 @@ import cats.effect.ContextShift
14
14
import scala .concurrent .ExecutionContext
15
15
import scaladex .core .model .Project
16
16
import scaladex .core .model .search .SearchParams
17
- import scaladex .infra .{ElasticsearchEngine , FilesystemStorage , FlywayMigration , SqlDatabase }
17
+ import scaladex .infra .{ElasticsearchEngine , FilesystemStorage , SqlDatabase }
18
18
import scaladex .infra .sql .DoobieUtils
19
19
import scaladex .server .service .SearchSynchronizer
20
20
import scaladex .core .model .search .PageParams
21
- import scaladex .server .service .ProjectDependenciesUpdater
21
+ import scaladex .server .service .DependencyUpdater
22
22
23
23
class RelevanceTest extends TestKit (ActorSystem (" SbtActorTest" )) with AsyncFunSuiteLike with BeforeAndAfterAll {
24
24
@@ -31,18 +31,17 @@ class RelevanceTest extends TestKit(ActorSystem("SbtActorTest")) with AsyncFunSu
31
31
implicit val cs : ContextShift [IO ] = IO .contextShift(ExecutionContext .global)
32
32
val datasource = DoobieUtils .getHikariDataSource(config.database)
33
33
val transactor = DoobieUtils .transactor(datasource)
34
- val flyway = FlywayMigration (datasource)
35
34
transactor
36
35
.use { xa =>
37
- val database = new SqlDatabase (xa)
36
+ val database = new SqlDatabase (datasource, xa)
38
37
val filesystem = FilesystemStorage (config.filesystem)
39
38
40
39
val searchSync = new SearchSynchronizer (database, searchEngine)
41
- val projectDependenciesUpdater = new ProjectDependenciesUpdater (database)
40
+ val projectDependenciesUpdater = new DependencyUpdater (database)
42
41
43
42
IO .fromFuture(IO {
44
43
for {
45
- _ <- Init .run(database, filesystem, flyway )
44
+ _ <- Init .run(database, filesystem)
46
45
_ <- searchEngine.init(true )
47
46
_ <- projectDependenciesUpdater.updateAll()
48
47
_ <- searchSync.syncAll()
0 commit comments