Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vektah committed Aug 8, 2019
1 parent 6348a56 commit 9e27a98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handler/websocket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,11 @@ func TestWebsocketInitFunc(t *testing.T) {
}

func wsConnect(url string) *websocket.Conn {
c, _, err := websocket.DefaultDialer.Dial(strings.Replace(url, "http://", "ws://", -1), nil)
c, resp, err := websocket.DefaultDialer.Dial(strings.Replace(url, "http://", "ws://", -1), nil)
if err != nil {
panic(err)
}
_ = resp.Body.Close()
return c
}

Expand Down

0 comments on commit 9e27a98

Please sign in to comment.