Skip to content

Commit

Permalink
fix mapstructure unit test error
Browse files Browse the repository at this point in the history
fix unit test error "mapstructure: result must be a pointer". It appears instead of resolver returned error.
  • Loading branch information
jekaspekas authored Aug 23, 2018
1 parent 4a6f505 commit b082227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (p *Client) Websocket(query string, options ...Option) *Subscription {

if respDataRaw["errors"] != nil {
var errs []*gqlerror.Error
if err = unpack(respDataRaw["errors"], errs); err != nil {
if err = unpack(respDataRaw["errors"], &errs); err != nil {
return err
}
if len(errs) > 0 {
Expand Down

0 comments on commit b082227

Please sign in to comment.