You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by md...@apache.org on 2023/10/21 22:01:01 UTC

[incubator-pekko] 02/02: =test Switch pattern matching cases in Player.

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

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

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

    =test Switch pattern matching cases in Player.
    
    (cherry picked from commit 299484d9f812e0f9376201634cfa119f612c4e36)
---
 .../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 c81371e56f..01db67b685 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
@@ -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)


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