akka/akka-http

TestKit for SSE routes

開放

#2,250 建立於 2018年10月10日

 (3 則留言) (0 個反應) (0 位負責人)Scala (598 個分叉)batch import
1 - triagedhelp wantedt:sse

倉庫指標

星標
 (1,311 顆星)
PR 合併指標
 (平均合併 1天 10小時) (30 天內合併 2 個 PR)

描述

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.

貢獻者指南