Merge pull request #28262 from akka/fixTimerTest
Use timer key for tests that require it
This commit is contained in:
commit
a02a1e8ccb
1 changed files with 3 additions and 3 deletions
|
|
@ -121,7 +121,7 @@ class TimerSpec extends ScalaTestWithActorTestKit with WordSpecLike with LogCapt
|
|||
"replace timer" taggedAs TimingTest in {
|
||||
val probe = TestProbe[Event]("evt")
|
||||
val behv = Behaviors.withTimers[Command] { timer =>
|
||||
timer.startTimerWithFixedDelay(Tick(1), interval)
|
||||
timer.startTimerWithFixedDelay("T", Tick(1), interval)
|
||||
target(probe.ref, timer, 1)
|
||||
}
|
||||
|
||||
|
|
@ -141,7 +141,7 @@ class TimerSpec extends ScalaTestWithActorTestKit with WordSpecLike with LogCapt
|
|||
"cancel timer" taggedAs TimingTest in {
|
||||
val probe = TestProbe[Event]("evt")
|
||||
val behv = Behaviors.withTimers[Command] { timer =>
|
||||
timer.startTimerWithFixedDelay(Tick(1), interval)
|
||||
timer.startTimerWithFixedDelay("T", Tick(1), interval)
|
||||
target(probe.ref, timer, 1)
|
||||
}
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ class TimerSpec extends ScalaTestWithActorTestKit with WordSpecLike with LogCapt
|
|||
val probe = TestProbe[Event]("evt")
|
||||
val behv = Behaviors
|
||||
.supervise(Behaviors.withTimers[Command] { timer =>
|
||||
timer.startTimerWithFixedDelay(Tick(1), interval)
|
||||
timer.startTimerWithFixedDelay("T", Tick(1), interval)
|
||||
target(probe.ref, timer, 1)
|
||||
})
|
||||
.onFailure[Exception](SupervisorStrategy.restart)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue