Skip to content

Commit

Permalink
fix: http validation error to be in response body (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolg authored Jun 1, 2022
1 parent a874bbd commit c23b831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steps/http/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ func (s *Session) ValidateResponseBodyText(ctx context.Context, expectedText str
return nil
}
return fmt.Errorf("response payload: '%v' is not the expected: '%s'",
s.Request.RequestBody, expectedText)
s.Response.ResponseBody, expectedText)
}

// StoreResponseBodyJSONPropertyInContext extracts a JSON property from
Expand Down

0 comments on commit c23b831

Please sign in to comment.