akka/akka-http

TestKit for SSE routes

Offen

#2.250 geöffnet am 10.10.2018

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Scala (598 Forks)batch import
1 - triagedhelp wantedt:sse

Repository-Metriken

Stars
 (1.311 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 10h) (2 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide