Fix test for ws connection

disco_info_form
Wichert Akkerman 5 years ago committed by Mickaël Rémond
parent 06a76160c8
commit a189748b9c

@ -23,7 +23,7 @@ func (t *WebsocketTransport) Connect() error {
defer cancel()
wsConn, _, err := websocket.Dial(ctx, t.Config.Address, nil)
if err != nil {
if err == nil {
t.wsConn = wsConn
t.netConn = websocket.NetConn(t.ctx, t.wsConn, websocket.MessageText)
}

Loading…
Cancel
Save