Fix test for ws connection

This commit is contained in:
Wichert Akkerman 2019-10-12 15:48:29 +02:00 committed by Mickaël Rémond
parent 06a76160c8
commit a189748b9c

View File

@ -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)
}