Skip to content

Commit

Permalink
=test Switch pattern matching cases in Player.
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin committed Sep 6, 2023
1 parent 131e774 commit 299484d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,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 299484d

Please sign in to comment.