Issue #1650 - testcase stability effort (take 2)
This commit is contained in:
parent
2fc86c209b
commit
1e85e810bf
|
@ -108,11 +108,12 @@ public class BasicAppTest
|
|||
|
||||
socket.awaitOpen(5,TimeUnit.SECONDS);
|
||||
socket.sendText("Hello World");
|
||||
socket.close(StatusCode.NORMAL,"Test complete");
|
||||
socket.awaitClose(5,TimeUnit.SECONDS);
|
||||
|
||||
String response = socket.getTextMessages().poll(5, TimeUnit.SECONDS);
|
||||
assertThat("Message[0]",response,is("Hello World"));
|
||||
|
||||
socket.close(StatusCode.NORMAL,"Test complete");
|
||||
socket.awaitClose(5,TimeUnit.SECONDS);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
@ -167,13 +167,14 @@ public class CdiAppTest
|
|||
|
||||
socket.awaitOpen(2,TimeUnit.SECONDS);
|
||||
socket.sendText("data|stuff");
|
||||
socket.close(StatusCode.NORMAL,"Test complete");
|
||||
socket.awaitClose(2,TimeUnit.SECONDS);
|
||||
|
||||
String response = socket.getTextMessages().poll(5, TimeUnit.SECONDS);
|
||||
assertThat("Message[0]",response,containsString("Hello there stuff"));
|
||||
response = socket.getTextMessages().poll(5, TimeUnit.SECONDS);
|
||||
assertThat("Message[1]",response,notNullValue());
|
||||
|
||||
socket.close(StatusCode.NORMAL,"Test complete");
|
||||
socket.awaitClose(2,TimeUnit.SECONDS);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue