We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e4b0d9 commit c4d8b61Copy full SHA for c4d8b61
mocks.go
@@ -1030,10 +1030,10 @@ var bodyMatcher = func(req *http.Request, spec *MockRequest) error {
1030
}
1031
1032
if isJSON {
1033
- return fmt.Errorf("received body did not match expected mock body\n%s", diff(reqJSON, matchJSON))
+ return fmt.Errorf("received body did not match expected mock body\n%s", diff(matchJSON, reqJSON))
1034
1035
1036
- return fmt.Errorf("received body did not match expected mock body\n%s", diff(bodyStr, mockBody))
+ return fmt.Errorf("received body did not match expected mock body\n%s", diff(mockBody, bodyStr))
1037
1038
1039
func errorOrNil(statement bool, errorMessage func() string) error {
0 commit comments