Merge pull request #1360 from hikyaru-suzuki/feature/update_logging_output

mock: AssertExpectations log reason only on failure
pull/1219/merge
Olivier Mengué 2023-07-29 05:52:15 +02:00 committed by GitHub
commit 862e41010c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {