akka/akka-http

TestKit for SSE routes

オープン

#2,250 opened on 2018/10/10

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Scala (598 件のフォーク)batch import
1 - triagedhelp wantedt:sse

Repository metrics

Stars
 (1,311 個のスター)
PR merge metrics
 (平均マージ 1d 10h) (30d で 2 merged PRs)

説明

Hello. I have tried to test an SSE route, but unfortunately, a method "check" has failed with an error "Futures timed out after [1 second]".

As I understood, the method "check" awaits completing of the request, but this request is SSE which holds a connection permanently and reconnects if the connection has been lost.

So, how to test such methods? It was very good if it can be tested as web sockets.

コントリビューターガイド