File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
actor-tests/src/test/scala/org/apache/pekko/actor Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -202,10 +202,11 @@ trait SchedulerSpec extends BeforeAndAfterEach with DefaultTimeout with Implicit
202202 }
203203 val latencies = within(10 .seconds) {
204204 for (i <- 1 to N )
205- yield try expectMsgType[Long ]
206- catch {
207- case NonFatal (e) => throw new Exception (s " failed expecting the $i-th latency " , e)
208- }
205+ yield
206+ try expectMsgType[Long ]
207+ catch {
208+ case NonFatal (e) => throw new Exception (s " failed expecting the $i-th latency " , e)
209+ }
209210 }
210211 val histogram = latencies.groupBy(_ / 100000000L )
211212 for (k <- histogram.keys.toSeq.sorted) {
@@ -507,10 +508,11 @@ class LightArrayRevolverSchedulerSpec extends PekkoSpec(SchedulerSpec.testConfRe
507508 println(cancelled)
508509 val latencies = within(10 .seconds) {
509510 for (i <- 1 to (N - cancelled))
510- yield try expectMsgType[Long ]
511- catch {
512- case NonFatal (e) => throw new Exception (s " failed expecting the $i-th latency " , e)
513- }
511+ yield
512+ try expectMsgType[Long ]
513+ catch {
514+ case NonFatal (e) => throw new Exception (s " failed expecting the $i-th latency " , e)
515+ }
514516 }
515517 val histogram = latencies.groupBy(_ / 100000000L )
516518 for (k <- histogram.keys.toSeq.sorted) {
You can’t perform that action at this time.
0 commit comments