java.lang.AssertionError

assertion failed: expected OnNext(TextMessage.Strict(hello)), found OnComplete


Solutions on the web6726

Solution icon of github
via GitHub by jonas
, 10 months ago
assertion failed: expected OnNext(TextMessage.Strict(hello)), found OnComplete

Solution icon of github
via GitHub by agolubev
, 1 year ago
assertion failed: expected OnComplete, found OnNext((2,1))

Solution icon of github
via GitHub by rkuhn
, 1 year ago
assertion failed: expected OnComplete, found OnNext((2,1))

Solution icon of github
via GitHub by ignasi35
, 7 months ago
expected OnNext, found OnComplete, took 22.788 sec

Solution icon of github
assertion failed: expected OnNext(5), found OnNext(1)

Solution icon of github
via GitHub by hepin1989
, 1 year ago
assertion failed: expected OnNext(ByteString(11)), found OnNext(ByteString(3))

Solution icon of github
via GitHub by agolubev
, 1 year ago
assertion failed: expected OnNext(ByteString(11)), found OnNext(ByteString(3))

Solution icon of github
via GitHub by ktoso
, 1 year ago
assertion failed: expected OnNext(ByteString(11)), found OnNext(ByteString(3))

Solution icon of github
via GitHub by rkuhn
, 1 year ago
assertion failed: expected class akka.stream.testkit.TestSubscriber$OnError, found class akka.stream.testkit.TestSubscriber$OnComplete$

Stack trace

  • java.lang.AssertionError: assertion failed: expected OnNext(TextMessage.Strict(hello)), found OnComplete at scala.Predef$.assert(Predef.scala:170) at akka.testkit.TestKitBase$class.expectMsg_internal(TestKit.scala:388) at akka.testkit.TestKitBase$class.expectMsg(TestKit.scala:364) at akka.testkit.TestKit.expectMsg(TestKit.scala:814) at akka.stream.testkit.TestSubscriber$ManualProbe.expectNext(StreamTestKit.scala:280) at akka.http.impl.engine.ws.WebSocketIntegrationSpec$$anonfun$1$$anonfun$apply$mcV$sp$2$$anonfun$apply$3.apply(WebSocketIntegrationSpec.scala:123) at akka.http.impl.engine.ws.WebSocketIntegrationSpec$$anonfun$1$$anonfun$apply$mcV$sp$2$$anonfun$apply$3.apply(WebSocketIntegrationSpec.scala:68) at akka.stream.testkit.Utils$.assertAllStagesStopped(Utils.scala:25) at akka.http.impl.engine.ws.WebSocketIntegrationSpec$$anonfun$1$$anonfun$apply$mcV$sp$2.apply(WebSocketIntegrationSpec.scala:68) at akka.http.impl.engine.ws.WebSocketIntegrationSpec$$anonfun$1$$anonfun$apply$mcV$sp$2.apply(WebSocketIntegrationSpec.scala:68)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

3 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
Once, 8 months ago
21 more bugmates