mirror of https://github.com/stretchr/testify.git
Merge pull request #1360 from hikyaru-suzuki/feature/update_logging_output
mock: AssertExpectations log reason only on failurepull/1219/merge
commit
862e41010c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue