Skip to content

Commit 2e6b8ac

Browse files
hamdiallamjenkins
authored and
jenkins
committed
AppTest: bump graceful shutdown timout
Problem Util actions is flakey because of AppTest. Solution / Result: Let's bump the graceful shutdown period before marking the test as flakey JIRA Issues: CSL-11274 Differential Revision: https://phabricator.twitter.biz/D765916
1 parent b8a30a7 commit 2e6b8ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

util-app/src/test/scala/com/twitter/app/AppTest.scala

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package com.twitter.app
22

33
import com.twitter.app.lifecycle.Event._
4-
import com.twitter.app.lifecycle.{Event, Observer}
4+
import com.twitter.app.lifecycle.Event
5+
import com.twitter.app.lifecycle.Observer
56
import com.twitter.app.LoadService.Binding
67
import com.twitter.conversions.DurationOps._
78
import com.twitter.util._
@@ -53,7 +54,7 @@ class WeNeverCloseButWeDoNotCare extends WeNeverClose {
5354
}
5455

5556
trait ErrorOnExitApp extends App {
56-
override val defaultCloseGracePeriod: Duration = 2.seconds
57+
override val defaultCloseGracePeriod: Duration = 5.seconds
5758

5859
override def exitOnError(throwable: Throwable): Unit = {
5960
throw throwable

0 commit comments

Comments
 (0)