Skip to content

Commit

Permalink
Merge pull request #1360 from hikyaru-suzuki/feature/update_logging_o…
Browse files Browse the repository at this point in the history
…utput

mock: AssertExpectations log reason only on failure
  • Loading branch information
dolmen authored Jul 29, 2023
2 parents 486eb6f + 75b9b6d commit 862e410
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 @@ -606,8 +606,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 862e410

Please sign in to comment.