Fix Web Socket server connection failure 44/107744/1
authorliamfallon <liam.fallon@est.tech>
Fri, 15 May 2020 14:09:37 +0000 (15:09 +0100)
committerliamfallon <liam.fallon@est.tech>
Fri, 15 May 2020 14:16:18 +0000 (15:16 +0100)
commit1906e13ff902a096bcf1f7077122ca3eb811d02c
tree5a4c314c35f8cd5013b4ac605b6d2e31490a7a61
parentc0b182649ee4ad6b963990ae15c3f3bcec2e09bc
Fix Web Socket server connection failure

In the Web Socket unit test, sometimes the server does not start quickly
enough and is not available when the wek socket client connects. This
review changes the unit test to wait for up to 2 seconds for the web
socket server to come up.

Issue-ID: POLICY-2571
Change-Id: I0c970783f368d691d07683bad0cdc28b681e5334
Signed-off-by: liamfallon <liam.fallon@est.tech>
core/core-infrastructure/src/main/java/org/onap/policy/apex/core/infrastructure/messaging/stringmessaging/WsStringMessageClient.java
core/core-infrastructure/src/main/java/org/onap/policy/apex/core/infrastructure/messaging/stringmessaging/WsStringMessageServer.java
core/core-infrastructure/src/main/java/org/onap/policy/apex/core/infrastructure/messaging/stringmessaging/WsStringMessager.java
core/core-infrastructure/src/test/java/org/onap/policy/apex/core/infrastructure/messaging/EndToEndStringMessagingTest.java