diff --git a/mock/mock.go b/mock/mock.go index e6ff8df..e15b5a9 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -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 {