akka/akka-http

TestKit for SSE routes

Open

#2,250 opened on Oct 10, 2018

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Scala (598 forks)batch import
1 - triagedhelp wantedt:sse

Repository metrics

Stars
 (1,311 stars)
PR merge metrics
 (Avg merge 1d 10h) (2 merged PRs in 30d)

Description

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