Skip to content

Commit 4f8a38e

Browse files
committed
Check for -PstressTest=true to run "long" stress test
* Should not run long stress-tests during regular builds.
1 parent f911dce commit 4f8a38e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/jvm/test/TestBase.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package kotlinx.coroutines
@@ -37,7 +37,7 @@ public actual open class TestBase actual constructor() {
3737
/**
3838
* Is `true` when running in a nightly stress test mode.
3939
*/
40-
public actual val isStressTest = System.getProperty("stressTest") != null
40+
public actual val isStressTest = System.getProperty("stressTest")?.toBoolean() ?: false
4141

4242
public val stressTestMultiplierSqrt = if (isStressTest) 5 else 1
4343

0 commit comments

Comments
 (0)