Fix bug when xnf simulator was not sending events 47/79247/2
authorJakub Dudycz <jakub.dudycz@nokia.com>
Wed, 27 Feb 2019 09:16:01 +0000 (10:16 +0100)
committerJakub Dudycz <jakub.dudycz@nokia.com>
Wed, 27 Feb 2019 13:50:49 +0000 (14:50 +0100)
Change-Id: I53cdf572d2df66d6021651424931a67108c482d3
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Issue-ID: DCAEGEN2-1291

sources/hv-collector-xnf-simulator/src/main/kotlin/org/onap/dcae/collectors/veshv/simulators/xnf/impl/XnfSimulator.kt

index 812afe1..53a8826 100644 (file)
@@ -66,7 +66,7 @@ class XnfSimulator(
 
     private fun simulationFrom(parameters: List<MessageParameters>): IO<Unit> = parameters
             .toFlux()
-            .map(::simulate)
+            .flatMap(::simulate)
             .then(Mono.just(Unit))
             .asIo()