From d7d3803c4cc0fd64ea9fe7a83a71b7b7670473b6 Mon Sep 17 00:00:00 2001 From: kovstas Date: Sun, 2 Jun 2024 01:18:30 +0200 Subject: [PATCH] change memory leak test throttle duration --- .../scala/dev/kovstas/fs2throttler/MemoryLeakSpec.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/scala/dev/kovstas/fs2throttler/MemoryLeakSpec.scala b/src/test/scala/dev/kovstas/fs2throttler/MemoryLeakSpec.scala index bce567d..3f1b9d7 100644 --- a/src/test/scala/dev/kovstas/fs2throttler/MemoryLeakSpec.scala +++ b/src/test/scala/dev/kovstas/fs2throttler/MemoryLeakSpec.scala @@ -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)) } }