akka / akka-http

The Streaming-first HTTP server/module of Akka
https://doc.akka.io/docs/akka-http
Other
1.34k stars 596 forks source link

TestKit for SSE routes #2250

Open tverdokhlebd opened 5 years ago

tverdokhlebd commented 5 years ago

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.

jrudolph commented 5 years ago

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

Yep, that would indeed be nice.

franktominc commented 5 years ago

@jrudolph I'd like to work on that, can you provide me some guidance?

i-am-chauhan commented 5 years ago

We are facing the same issue. Is there any workaround until this gets fixed?