Skip to content

Commit

Permalink
Remove infinite loop test for TimeoutSuite
Browse files Browse the repository at this point in the history
This test case was causing CI failures on Linux that I wasn't able to
reproduce on my local MacBook.
  • Loading branch information
olafurpg committed Oct 11, 2021
1 parent 8a123cd commit 2598fa6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/jvm/src/test/scala/munit/TimeoutSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ class TimeoutSuite extends munit.FunSuite {
Thread.sleep(1000)
}
}
test("infinite-loop".fail) {
Future {
while (true) {
def fib(n: Int): Int = {
if (n < 1) 0
else if (n == 1) n
else fib(n - 1) + fib(n - 2)
}
// Some computationally intensive calculation
1.to(1000).foreach(i => fib(i))
println("Loop")
}
}
}
test("fast") {
Future {
Thread.sleep(1)
Expand Down

0 comments on commit 2598fa6

Please sign in to comment.