-
-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix TimeoutCancellationException - downgrade Spek #1903
Conversation
Spek 2.0.3 introduced test timeouts. (https://github.com/spekframework/spek/releases/tag/2.0.3) The default timeout is 10 seconds per test case. Detekt's rule-tests easily reach this limit when 1. setting up 8 `KotlinScriptEngine's` for compiling test snippets. 2. the (CI) machines are under heavy load This results in the following exception as happened in commit 9691e0d. kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 10000 ms Unfortunately, Spek doesn't allow to set a global timeout (yet). See: spekframework/spek#769 Setting a custom timeout on each test block is not what we want. Therefore, this commit downgrades Spek to version 2.0.2.
Codecov Report
@@ Coverage Diff @@
## master #1903 +/- ##
=========================================
Coverage 80.43% 80.43%
Complexity 1950 1950
=========================================
Files 325 325
Lines 5490 5490
Branches 1013 1013
=========================================
Hits 4416 4416
Misses 545 545
Partials 529 529 Continue to review full report at Codecov.
|
Ah I see, sorry for the spam in both PRs :) |
Spek 2.0.3 introduced test timeouts. (https://github.com/spekframework/spek/releases/tag/2.0.3) The default timeout is 10 seconds per test case. Detekt's rule-tests easily reach this limit when 1. setting up 8 `KotlinScriptEngine's` for compiling test snippets. 2. the (CI) machines are under heavy load This results in the following exception as happened in commit 9691e0d. kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 10000 ms Unfortunately, Spek doesn't allow to set a global timeout (yet). See: spekframework/spek#769 Setting a custom timeout on each test block is not what we want. Therefore, this commit downgrades Spek to version 2.0.2.
Spek 2.0.3 introduced test timeouts. (https://github.com/spekframework/spek/releases/tag/2.0.3) The default timeout is 10 seconds per test case. Detekt's rule-tests easily reach this limit when 1. setting up 8 `KotlinScriptEngine's` for compiling test snippets. 2. the (CI) machines are under heavy load This results in the following exception as happened in commit 9691e0d. kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 10000 ms Unfortunately, Spek doesn't allow to set a global timeout (yet). See: spekframework/spek#769 Setting a custom timeout on each test block is not what we want. Therefore, this commit downgrades Spek to version 2.0.2.
Spek 2.0.3 introduced test timeouts. (https://github.com/spekframework/spek/releases/tag/2.0.3) The default timeout is 10 seconds per test case. Detekt's rule-tests easily reach this limit when 1. setting up 8 `KotlinScriptEngine's` for compiling test snippets. 2. the (CI) machines are under heavy load This results in the following exception as happened in commit 9691e0d. kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 10000 ms Unfortunately, Spek doesn't allow to set a global timeout (yet). See: spekframework/spek#769 Setting a custom timeout on each test block is not what we want. Therefore, this commit downgrades Spek to version 2.0.2.
Spek 2.0.3 introduced test timeouts. (https://github.com/spekframework/spek/releases/tag/2.0.3) The default timeout is 10 seconds per test case. Detekt's rule-tests easily reach this limit when 1. setting up 8 `KotlinScriptEngine's` for compiling test snippets. 2. the (CI) machines are under heavy load This results in the following exception as happened in commit 9691e0d. kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 10000 ms Unfortunately, Spek doesn't allow to set a global timeout (yet). See: spekframework/spek#769 Setting a custom timeout on each test block is not what we want. Therefore, this commit downgrades Spek to version 2.0.2.
Spek 2.0.3 introduced test timeouts.
(https://github.com/spekframework/spek/releases/tag/2.0.3)
The default timeout is 10 seconds per test case.
Detekt's rule-tests easily reach this limit when
KotlinScriptEngine's
for compiling test snippets.This results in the following exception as happened in commit 9691e0d.
kotlinx.coroutines.TimeoutCancellationException:
Timed out waiting for 10000 ms
Unfortunately, Spek doesn't allow to set a global timeout (yet).
See: spekframework/spek#769
Setting a custom timeout on each test block is not what we want.
Therefore, this commit downgrades Spek to version 2.0.2.