You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by he...@apache.org on 2023/09/06 16:08:07 UTC

[incubator-pekko] branch main updated: =test Switch pattern matching cases in Player.

This is an automated email from the ASF dual-hosted git repository.

hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git


The following commit(s) were added to refs/heads/main by this push:
     new 299484d9f8 =test Switch pattern matching cases in Player.
299484d9f8 is described below

commit 299484d9f812e0f9376201634cfa119f612c4e36
Author: He-Pin <he...@alibaba-inc.com>
AuthorDate: Wed Sep 6 20:10:24 2023 +0800

    =test Switch pattern matching cases in Player.
---
 .../src/main/scala/org/apache/pekko/remote/testconductor/Player.scala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/multi-node-testkit/src/main/scala/org/apache/pekko/remote/testconductor/Player.scala b/multi-node-testkit/src/main/scala/org/apache/pekko/remote/testconductor/Player.scala
index b58c7f5dd6..570be3b53b 100644
--- a/multi-node-testkit/src/main/scala/org/apache/pekko/remote/testconductor/Player.scala
+++ b/multi-node-testkit/src/main/scala/org/apache/pekko/remote/testconductor/Player.scala
@@ -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)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org