Skip to content

Commit

Permalink
fix invalid order of json cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
alileza committed Jul 23, 2018
1 parent 2dccd66 commit 4616d67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion handler/httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ func (h *Handler) responseBodyShouldBe(name string, body *gherkin.DocString) err

_, responseBody := httpClient.ResponseCode(), httpClient.ResponseBody()

return cmp.JSON(responseBody, []byte(body.Content), false)
return cmp.JSON([]byte(body.Content), responseBody, false)
}
2 changes: 1 addition & 1 deletion handler/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ func (h *Handler) messageFromTargetShouldLookLike(name, target string, body *ghe
return fmt.Errorf("no message to consume `%s`", target)
}

return cmp.JSON(consumedMessage, []byte(body.Content), false)
return cmp.JSON([]byte(body.Content), consumedMessage, false)
}

0 comments on commit 4616d67

Please sign in to comment.