Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Dec 20, 2024
1 parent 60ed282 commit 05f8fa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ trait PollerMetrics {
}

object PollerMetrics {
private[unsafe] object noop extends PollerMetrics {
private[effect] object noop extends PollerMetrics {
def operationsOutstandingCount(): Int = 0
def totalOperationsSubmittedCount(): Long = 0
def totalOperationsCompletedCount(): Long = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import cats.effect.unsafe.{
SleepSystem,
WorkStealingThreadPool
}
import cats.effect.unsafe.metrics.PollerMetrics
import cats.syntax.all._

import org.scalacheck.Prop.forAll
Expand Down Expand Up @@ -500,6 +501,7 @@ trait IOPlatformSpecification extends DetectPlatform { self: BaseSpec with Scala
def makePoller() = new AtomicReference(List.empty[Either[Throwable, Unit] => Unit])
def needsPoll(poller: Poller) = poller.get.nonEmpty
def closePoller(poller: Poller) = ()
def metrics(poller: Poller): PollerMetrics = PollerMetrics.noop

def interrupt(targetThread: Thread, targetPoller: Poller) =
SleepSystem.interrupt(targetThread, SleepSystem.makePoller())
Expand Down

0 comments on commit 05f8fa8

Please sign in to comment.