File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
fs2/src/test/scala/sttp/capabilities/fs2 Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
package sttp .capabilities .fs2
2
2
3
3
import cats .effect .IO
4
- import cats .effect .unsafe . implicits . global
4
+ import cats .effect .unsafe
5
5
import fs2 ._
6
6
import org .scalatest .flatspec .AsyncFlatSpec
7
7
import org .scalatest .matchers .should .Matchers
8
8
import sttp .capabilities .StreamMaxLengthExceededException
9
9
10
10
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
+
11
20
behavior of " Fs2Streams"
12
21
13
22
it should " Pass all bytes if limit is not exceeded" in {
You can’t perform that action at this time.
0 commit comments