Skip to content

Commit 6b375b8

Browse files
authored
further timeout increase for Travis (#12)
* further timeout increase for Travis * even more timeouts * even more timeouts
1 parent e91e02b commit 6b375b8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

chapter11/src/test/scala/com/reactivedesignpatterns/chapter11/EchoServiceSpec.scala

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ akka.actor.default-dispatcher.fork-join-executor.parallelism-max = 3
142142
val sorted = timings.sorted
143143
val ninetyfifthPercentile = sorted.dropRight(N * 5 / 100).last
144144
info(s"SLA min=${sorted.head} max=${sorted.last} 95th=$ninetyfifthPercentile")
145-
val SLA = if (Helpers.isCiTest) 10.milliseconds else 1.millisecond
145+
val SLA = if (Helpers.isCiTest) 25.milliseconds else 1.millisecond
146146
ninetyfifthPercentile should be < SLA
147147
}
148148

149149
"keep its SLA when used in parallel with Futures" in {
150-
implicit val timeout = Timeout(100.millis)
150+
implicit val timeout = Timeout(500.millis)
151151
import system.dispatcher
152152
val echo = echoService("keepSLAfuture")
153153
val N = 10000
@@ -164,7 +164,8 @@ akka.actor.default-dispatcher.fork-join-executor.parallelism-max = 3
164164
val sorted = timings.sorted
165165
val ninetyfifthPercentile = sorted.dropRight(N * 5 / 100).last
166166
info(s"SLA min=${sorted.head} max=${sorted.last} 95th=$ninetyfifthPercentile")
167-
ninetyfifthPercentile should be < 100.milliseconds
167+
val SLA = if (Helpers.isCiTest) 500.milliseconds else 100.milliseconds
168+
ninetyfifthPercentile should be < SLA
168169
}
169170

170171
"keep its SLA when used in parallel" in {
@@ -185,7 +186,7 @@ akka.actor.default-dispatcher.fork-join-executor.parallelism-max = 3
185186
val sorted = result.timings.sorted
186187
val ninetyfifthPercentile = sorted.dropRight(N * 5 / 100).last
187188
info(s"SLA min=${sorted.head} max=${sorted.last} 95th=$ninetyfifthPercentile")
188-
val SLA = if (Helpers.isCiTest) 10.milliseconds else 2.milliseconds
189+
val SLA = if (Helpers.isCiTest) 25.milliseconds else 2.milliseconds
189190
ninetyfifthPercentile should be < SLA
190191
}
191192

@@ -205,7 +206,8 @@ akka.actor.default-dispatcher.fork-join-executor.parallelism-max = 3
205206
val lat = Await.result(latencies, 20.seconds)
206207
info(s"latency info: $lat")
207208
lat.failureCount should be(0)
208-
lat.quantile(0.99) should be < 10.milliseconds
209+
val SLA = if (Helpers.isCiTest) 50.milliseconds else 10.milliseconds
210+
lat.quantile(0.99) should be < SLA
209211
}
210212

211213
}

0 commit comments

Comments
 (0)