Skip to content

Commit f6eb87f

Browse files
committed
fix fs2 tests
1 parent b8a114a commit f6eb87f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

fs2/src/test/scala/sttp/capabilities/fs2/Fs2StreamsTest.scala

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
package sttp.capabilities.fs2
22

33
import cats.effect.IO
4-
import cats.effect.unsafe.implicits.global
4+
import cats.effect.unsafe
55
import fs2._
66
import org.scalatest.flatspec.AsyncFlatSpec
77
import org.scalatest.matchers.should.Matchers
88
import sttp.capabilities.StreamMaxLengthExceededException
99

1010
class Fs2StreamsTest extends AsyncFlatSpec with Matchers {
11+
12+
implicit val runtime: unsafe.IORuntime = unsafe.IORuntime(
13+
executionContext,
14+
executionContext,
15+
unsafe.IORuntime.global.scheduler,
16+
unsafe.IORuntime.global.shutdown,
17+
unsafe.IORuntime.global.config
18+
)
19+
1120
behavior of "Fs2Streams"
1221

1322
it should "Pass all bytes if limit is not exceeded" in {

0 commit comments

Comments
 (0)