Skip to content

Commit d9ec641

Browse files
authored
Fixed a flaky test (#2110)
1 parent 4893bdc commit d9ec641

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vuu/src/test/scala/org/finos/vuu/net/ws/WebSocketSecurityTest.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ class WebSocketSecurityTest extends AnyFeatureSpec with Matchers with StrictLogg
4848
)
4949

5050
val viewServer = VuuServer(config)
51+
val webSocketClient = createClient(config, viewServer)
5152
lifeCycle.start()
5253

54+
//Check the WS is accepting connections
55+
eventually(timeout(Span(5, Seconds))) {
56+
webSocketClient.canWrite shouldBe true
57+
}
58+
5359
val webClient = createWebClient()
5460
val methods = Array("GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS")
5561

0 commit comments

Comments
 (0)