1
0
mirror of https://github.com/pcvolkmer/etl-processor.git synced 2025-07-04 07:22:55 +00:00

test: add test for config SSE endpoint

This commit is contained in:
2024-05-08 09:18:29 +02:00
parent a2124ba83d
commit 52171e8ebe
2 changed files with 43 additions and 1 deletions

View File

@ -183,6 +183,7 @@ class ConfigController(
}
@GetMapping(path = ["events"], produces = [MediaType.TEXT_EVENT_STREAM_VALUE])
@ResponseBody
fun events(): Flux<ServerSentEvent<Any>> {
return connectionCheckUpdateProducer.asFlux().map {
val event = when (it) {