Skip to content

Commit

Permalink
up munit version and change leak test params
Browse files Browse the repository at this point in the history
  • Loading branch information
kovstas committed Jun 1, 2024
1 parent 9143613 commit 919d8d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .sbtopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-J-Xms2g
-J-Xmx4g
-J-XX:MaxMetaspaceSize=512m
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ThisBuild / scalacOptions ++= scalaOptions(scalaVersion.value)

ThisBuild / libraryDependencies ++= Seq(
"co.fs2" %% "fs2-core" % "3.10.2",
"org.scalameta" %% "munit" % "0.7.29" % Test,
"org.scalameta" %% "munit" % "1.0.0" % Test,
"org.typelevel" %% "cats-effect-testkit" % "3.5.4" % Test
)

Expand Down
6 changes: 3 additions & 3 deletions src/test/scala/dev/kovstas/fs2throttler/MemoryLeakSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class MemoryLeakSpec extends FunSuite {
override def munitFlakyOK = true

case class LeakTestParams(
warmupIterations: Int = 5,
samplePeriod: FiniteDuration = 3.seconds,
monitorPeriod: FiniteDuration = 60.seconds,
warmupIterations: Int = 3,
samplePeriod: FiniteDuration = 1.seconds,
monitorPeriod: FiniteDuration = 20.seconds,
limitTotalBytesIncreasePerSecond: Long = 700000,
limitConsecutiveIncreases: Int = 10
)
Expand Down

0 comments on commit 919d8d3

Please sign in to comment.