Skip to content

Commit 747131b

Browse files
scala-steward-asf[bot]pjfanning
authored andcommitted
Reformat with scalafmt 3.10.2
Executed command: scalafmt --non-interactive
1 parent 4e6dddd commit 747131b

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

actor-tests/src/test/scala/org/apache/pekko/actor/SchedulerSpec.scala

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)