mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Fix logging in tests
This commit is contained in:
@ -46,7 +46,7 @@ trait Fixtures extends HttpClientOps { self: CatsEffectSuite =>
|
||||
}
|
||||
|
||||
object Fixtures {
|
||||
private val loggerIO: Logger[IO] = docspell.logging.getLogger[IO]
|
||||
private val loggerIO: Logger[IO] = Logger.simpleDefault[IO]()
|
||||
|
||||
final case class Env(store: Store[IO], cfg: PubSubConfig) {
|
||||
def pubSub: Resource[IO, NaivePubSub[IO]] = {
|
||||
|
@ -9,6 +9,7 @@ package docspell.pubsub.naive
|
||||
import cats.effect._
|
||||
|
||||
import docspell.common._
|
||||
import docspell.logging.Logger
|
||||
import docspell.pubsub.api._
|
||||
|
||||
import io.circe.Encoder
|
||||
@ -55,5 +56,5 @@ trait HttpClientOps {
|
||||
}
|
||||
|
||||
object HttpClientOps {
|
||||
private val logger = docspell.logging.getLogger[IO]
|
||||
private val logger = Logger.simpleDefault[IO]()
|
||||
}
|
||||
|
@ -12,13 +12,14 @@ import cats.effect._
|
||||
import cats.implicits._
|
||||
import fs2.concurrent.SignallingRef
|
||||
|
||||
import docspell.logging.{Logger, TestLoggingConfig}
|
||||
import docspell.pubsub.api._
|
||||
import docspell.pubsub.naive.Topics._
|
||||
|
||||
import munit.CatsEffectSuite
|
||||
|
||||
class NaivePubSubTest extends CatsEffectSuite with Fixtures {
|
||||
private[this] val logger = docspell.logging.getLogger[IO]
|
||||
class NaivePubSubTest extends CatsEffectSuite with Fixtures with TestLoggingConfig {
|
||||
private[this] val logger = Logger.simpleDefault[IO]()
|
||||
|
||||
def subscribe[A](ps: PubSubT[IO], topic: TypedTopic[A]) =
|
||||
for {
|
||||
|
Reference in New Issue
Block a user