mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
Remove concurrent write to websocket connection (#14527)
This test writes directly to a connection which causes panics and more frustration in an already fragile CI. Since this anyways checks an edge condition, and will anyways be removed in v6, let's remove this for now and let CI be happy.
This commit is contained in:
parent
48256721c4
commit
2e1dc79a03
1 changed files with 0 additions and 7 deletions
|
|
@ -47,13 +47,6 @@ func TestWebSocket(t *testing.T) {
|
|||
resp = <-WebSocketClient.ResponseChannel
|
||||
require.Equal(t, resp.Error.Id, "api.web_socket_router.bad_action.app_error", "should have been bad action response")
|
||||
|
||||
req := &model.WebSocketRequest{}
|
||||
req.Seq = 0
|
||||
req.Action = "ping"
|
||||
WebSocketClient.Conn.WriteJSON(req)
|
||||
resp = <-WebSocketClient.ResponseChannel
|
||||
require.Equal(t, resp.Error.Id, "api.web_socket_router.bad_seq.app_error", "should have been bad action response")
|
||||
|
||||
WebSocketClient.UserTyping("", "")
|
||||
resp = <-WebSocketClient.ResponseChannel
|
||||
require.Equal(t, resp.Error.Id, "api.websocket_handler.invalid_param.app_error", "should have been invalid param response")
|
||||
|
|
|
|||
Loading…
Reference in a new issue