Skip to content

Commit

Permalink
Merge pull request #3245 from djspiewak/bug/scaling-starvation-test
Browse files Browse the repository at this point in the history
Scale up starvation spec for machines with more physical threads
  • Loading branch information
djspiewak authored Nov 13, 2022
2 parents 8a375c8 + bdf32b4 commit 7710942
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/shared/src/main/scala/catseffect/examples.scala
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ package examples {
// jitter to give the cpu starvation checker a chance to run at all
val jitter = rand.nextIntBounded(100).flatMap(n => IO.sleep(n.millis))

(jitter >> IO(fib(42))).replicateA_(2).parReplicateA_(8)
(jitter >> IO(fib(42)))
.replicateA_(2)
.parReplicateA_(Runtime.getRuntime().availableProcessors() * 4)
}
}
}

0 comments on commit 7710942

Please sign in to comment.