akka/akka-http

TestKit for SSE routes

Aberta

#2.250 aberto em 10 de out. de 2018

 (3 comentários) (0 reação) (0 responsável)Scala (598 forks)batch import
1 - triagedhelp wantedt:sse

Métricas do repositório

Stars
 (1.311 estrelas)
Métricas de merge de PR
 (Mesclagem média 1d 10h) (2 fundiu PRs em 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.

Guia do colaborador