Skip to content

Commit

Permalink
=test Switch pattern matching cases in Player.
Browse files Browse the repository at this point in the history
(cherry picked from commit 299484d)
  • Loading branch information
He-Pin authored and mdedetrich committed Oct 21, 2023
1 parent 0fff313 commit a4461be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ private[pekko] class ClientFSM(name: RoleName, controllerAddr: InetSocketAddress
case Event(Done, _) =>
log.debug("received Done: starting test")
goto(Connected)
case Event(msg: ServerOp, _) =>
stay().replying(Status.Failure(new IllegalStateException(s"not connected yet but received $msg")))
case Event(msg: NetworkOp, _) =>
log.error("received {} instead of Done", msg)
goto(Failed)
case Event(_: ServerOp, _) =>
stay().replying(Status.Failure(new IllegalStateException("not connected yet")))
case Event(StateTimeout, _) =>
log.error("connect timeout to TestConductor")
goto(Failed)
Expand Down

0 comments on commit a4461be

Please sign in to comment.