You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollback runTest timeout to 60 seconds, configure it with getenv (#3945)
This commit attempts to fix#3800.
The first part of the fix, reverting the timeout to 60 seconds, is
successful.
The second part, allowing global configuration, is only provided
for the JVM so far.
On JVM, Native, and Node JS, it's possible to use environment
variables to communicate data to the process, and it could in
theory be the solution, but it doesn't seem to interoperate well
with Gradle.
The best attempt so far was to use this:
```kotlin
tasks.withType(AbstractTestTask::class).all {
if (this is ProcessForkOptions) {
environment("kotlinx.coroutines.test.default_timeout", "1ms")
}
}
```
Unfortunately, only `jvmTest` implements `ProcessForkOptions`.
Without a clear way to configure the `runTest` timeout in Gradle
builds for all targets, we only support this via system properties
on the JVM until a better mechanism appears.
0 commit comments