Skip to content

Commit

Permalink
update: log reason output only if failed
Browse files Browse the repository at this point in the history
  • Loading branch information
hikyaru-suzuki committed Mar 9, 2023
1 parent f36bfe3 commit 75b9b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,8 @@ func (m *Mock) AssertExpectations(t TestingT) bool {
satisfied, reason := m.checkExpectation(expectedCall)
if !satisfied {
failedExpectations++
t.Logf(reason)
}
t.Logf(reason)
}

if failedExpectations != 0 {
Expand Down

0 comments on commit 75b9b6d

Please sign in to comment.