Skip to content

Commit 9eef7d9

Browse files
committed
flaky test fixed
1 parent b44a1c3 commit 9eef7d9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

websockets-jsr/src/test/java/io/undertow/websockets/jsr/test/reconnect/ClientEndpointReconnectTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public void testAnnotatedClientEndpoint() throws Exception {
113113
session.getBasicRemote().sendText("close");
114114
Assert.assertEquals("CLOSE", endpoint.message());
115115
Assert.assertEquals("OPEN", endpoint.message());
116+
Assert.assertTrue(session.isOpen()); // Verify session is open before sending the next message
116117
session.getBasicRemote().sendText("hi");
117118
Assert.assertEquals("MESSAGE-ECHO-hi", endpoint.message());
118119
session.getBasicRemote().sendText("close");

0 commit comments

Comments
 (0)