Skip to content

Commit 6e653c1

Browse files
committed
Move 1 million task test to its own suite
So that memory-stressed Scala Native test doesn't choke on it.
1 parent 50622dc commit 6e653c1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

shared/src/test/scala/Stress.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ class StressTest extends munit.FunSuite:
5050
assertEquals(sum, total * (total + 1) / 2)
5151
}
5252

53-
test("1 million concurrent tasks") {
53+
class C10kTest extends munit.FunSuite:
54+
override val munitTimeout = 5.minutes
55+
56+
test("1 million concurrent tasks"):
5457
val count = 1_000_000
5558
def task(i: Int) = Task {
5659
AsyncOperations.sleep(100L)
@@ -64,4 +67,3 @@ class StressTest extends munit.FunSuite:
6467
assert(res.size == count)
6568
assert(res.sum == (1 + count) * count)
6669
}
67-
}

0 commit comments

Comments
 (0)