File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class WeNeverCloseButWeDoNotCare extends WeNeverClose {
5454}
5555
5656trait ErrorOnExitApp extends App {
57- override val defaultCloseGracePeriod : Duration = 10 .seconds
57+ override val defaultCloseGracePeriod : Duration = 30 .seconds
5858
5959 override def exitOnError (throwable : Throwable ): Unit = {
6060 throw throwable
@@ -397,6 +397,10 @@ class AppTest extends AnyFunSuite {
397397 }
398398
399399 test(" App: exit functions properly capture mix of non-fatal and fatal exceptions" ) {
400+ // This test case is known to be flaky on GitHub CI because it throws a `TimeoutException` before the expected
401+ // `InterruptedException` is thrown.
402+ // I suspect this is due to CI has limited CPU resources compared to local development while running lots of test
403+ // suites in parallel.
400404 val app = new ErrorOnExitApp {
401405 def main (): Unit = {
402406 onExit {
You can’t perform that action at this time.
0 commit comments