Skip to content

Commit

Permalink
Make the tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster committed Nov 14, 2024
1 parent 0ba68f1 commit 3a513fc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import java.time.Instant
import scala.concurrent.duration._

import cats.effect.IO
import cats.Applicative
import cats.effect.kernel.Ref
import cats.effect.testing.specs2.CatsEffect
import org.http4s.Uri
Expand All @@ -34,7 +35,7 @@ class MetadataSpec extends Specification with CatsEffect {
event: MetadataEvent,
entitiesAndCount: EntitiesAndCount
)
case class TestReporter[F[_]](state: Ref[F, List[Report]]) extends MetadataReporter[F] {
case class TestReporter[F[_]: Applicative](state: Ref[F, List[Report]]) extends MetadataReporter[F] {

def report(
periodStart: Instant,
Expand All @@ -45,6 +46,8 @@ class MetadataSpec extends Specification with CatsEffect {
state.update(
_ :+ Report(periodStart, periodEnd, event, entitiesAndCount)
)

def flush(): F[Unit] = Applicative[F].unit
}

"Metadata" should {
Expand Down

0 comments on commit 3a513fc

Please sign in to comment.