mirror of https://github.com/stretchr/testify.git
update: log reason output only if failed
parent
f36bfe3c33
commit
75b9b6dfff
|
@ -598,8 +598,8 @@ func (m *Mock) AssertExpectations(t TestingT) bool {
|
||||||
satisfied, reason := m.checkExpectation(expectedCall)
|
satisfied, reason := m.checkExpectation(expectedCall)
|
||||||
if !satisfied {
|
if !satisfied {
|
||||||
failedExpectations++
|
failedExpectations++
|
||||||
|
t.Logf(reason)
|
||||||
}
|
}
|
||||||
t.Logf(reason)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if failedExpectations != 0 {
|
if failedExpectations != 0 {
|
||||||
|
|
Loading…
Reference in New Issue