Skip to content

Commit

Permalink
Fixing bug with string conversion of gjson result
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrmiller committed Oct 17, 2018
1 parent 956a163 commit 2577070
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ Below are items on the official TO DO list, that will be implemented.
- Checks response headers
- When error, show response headers, failed file relative path
- checks !=
- checks variable types
- Remove pass by pointer
- Move to Go mod, 1.11
2 changes: 1 addition & 1 deletion manatest/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func checkResponseBodyJSON(check *TestChecks, response *resty.Response) error {
if !jsonValue.Exists() {
return fmt.Errorf("check '%s' wanted '%s' != received 'null'", check.Check, check.Value)
}
if jsonValue.Str != check.Value {
if jsonValue.String() != check.Value {
return fmt.Errorf("check '%s' wanted '%s' != received '%s'", check.Check, check.Value, jsonValue.String())
}

Expand Down

0 comments on commit 2577070

Please sign in to comment.