mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Update munit to 1.0.0, munit-cats-effect to 2.0.0
This commit is contained in:
@ -66,7 +66,7 @@ trait DatabaseTest
|
||||
} yield res
|
||||
)
|
||||
|
||||
lazy val newH2DataSource = ResourceFixture(for {
|
||||
lazy val newH2DataSource = ResourceFunFixture(for {
|
||||
jdbc <- Resource.eval(IO(StoreFixture.memoryDB(UUID.randomUUID().toString)))
|
||||
ds <- StoreFixture.dataSource(jdbc)
|
||||
} yield (jdbc, ds))
|
||||
|
@ -26,7 +26,7 @@ trait StoreFixture extends CatsEffectFunFixtures { self: CatsEffectSuite =>
|
||||
def schemaMigrateConfig =
|
||||
StoreFixture.schemaMigrateConfig
|
||||
|
||||
val xa = ResourceFixture {
|
||||
val xa = ResourceFunFixture {
|
||||
val cfg = StoreFixture.memoryDB("test")
|
||||
for {
|
||||
ds <- StoreFixture.dataSource(cfg)
|
||||
@ -35,7 +35,7 @@ trait StoreFixture extends CatsEffectFunFixtures { self: CatsEffectSuite =>
|
||||
} yield xa
|
||||
}
|
||||
|
||||
val store = ResourceFixture {
|
||||
val store = ResourceFunFixture {
|
||||
val cfg = StoreFixture.memoryDB("test")
|
||||
for {
|
||||
store <- StoreFixture.store(cfg)
|
||||
|
Reference in New Issue
Block a user