You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,7 +37,8 @@ final class AlpakkaTrophySpec extends AsyncWordSpec with Matchers with BeforeAnd
39
37
valnumberOfMessages=10
40
38
Hl7TcpClient(numberOfMessages)
41
39
42
-
newLogFileScanner().run(10, 10, "Starting test: Happy path should find all processed messages in WebsocketServer log", "ERROR").length should equal(0)
40
+
// With EmbeddedKafka there is one ERROR due to port binding at the start
41
+
newLogFileScanner().run(10, 10, "Starting test: Happy path should find all processed messages in WebsocketServer log", "ERROR").length should equal(1)
43
42
// 10 + 1 Initial message
44
43
newLogFileScanner().run(10, 10, "Starting test: Happy path should find all processed messages in WebsocketServer log", "WebsocketServer received:").length should equal(numberOfMessages +1)
45
44
}
@@ -103,24 +102,24 @@ final class AlpakkaTrophySpec extends AsyncWordSpec with Matchers with BeforeAnd
103
102
104
103
// Stopping after half of the msg are processed
105
104
Thread.sleep(5000)
106
-
logger.info("Re-starting Kafka container...")
107
-
kafkaContainer.stop()
108
-
kafkaContainer.run()
109
-
valnewMappedPortKafka= kafkaContainer.mappedPort
110
-
logger.info(s"Re-started Kafka on new mapped port: $newMappedPortKafka")
0 commit comments