Skip to content

Commit

Permalink
change memory leak test throttle duration
Browse files Browse the repository at this point in the history
  • Loading branch information
kovstas committed Jun 1, 2024
1 parent e616ab1 commit d7d3803
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/scala/dev/kovstas/fs2throttler/MemoryLeakSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,16 @@ class MemoryLeakSpec extends FunSuite {

leakTest("Throttler.throttle enforcing") {
Stream
.range(0, 1000000)
.range(0, 1_000_000)
.covary[IO]
.through(Throttler.throttle(100, 100.millis, Enforcing))
.through(Throttler.throttle(100, 10.millis, Enforcing))
}

leakTest("Throttler.throttle shaping") {
Stream
.range(0, 1000000)
.range(0, 1_000_000)
.covary[IO]
.through(Throttler.throttle(100, 100.millis, Shaping))
.through(Throttler.throttle(100, 10.millis, Shaping))
}

}

0 comments on commit d7d3803

Please sign in to comment.