Skip to content

Commit 9de09ab

Browse files
committed
Fix Ticker @implicitNotFound message to reference testkit-available API
The previous message pointed users at `ticked { implicit ticker => }`, which is defined in the internal tests module (tests/shared/src/test/scala/cats/ effect/Runners.scala) and is not visible to downstream users of the public testkit artifact. Replace it with an instruction that uses the constructor already exported from testkit. Closes #1875.
1 parent 505471a commit 9de09ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testkit/shared/src/main/scala/cats/effect/testkit/TestInstances.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ trait TestInstances extends ParallelFGenerators with OutcomeGenerators with Sync
253253
}
254254

255255
@implicitNotFound(
256-
"could not find an instance of Ticker; try using `in ticked { implicit ticker =>`")
256+
"could not find an instance of Ticker; try declaring one with `implicit val ticker: Ticker = Ticker()`")
257257
case class Ticker(ctx: TestContext = TestContext())
258258
}
259259

0 commit comments

Comments
 (0)