Hi All,
I have a simple scenario:
`
def openAndCloseWebsocket(authToken: String) = scenario(“Open and close a websocket connection”)
.exec (
ws(“acquire a websocket”)
.open("/subscription")
.queryParam(“auth”, authToken)
)
.exec(
ws(“Send msg”)
.sendText(pingJson)
.check(wsAwait.within(5).until(1).regex(".Pong."))
)
.exec(
ws(“close the websocket”).close
)
`
The scenario works fine and passes, except for the fact that closing the websocket takes 60 seconds every time. In fact, if I remove the very last exec
(i.e. don’t close the socket), the scenario ends much more quickly. Still, I prefer to close the socket once I’m done with it.
Is this a gatling bug, or am I doing something wrong?
Cheers,
Pouria