mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
AssertNumberOfCalls: wrong order of arguments
The assert.Equal called had the actual and expected values mixed up.
This commit is contained in:
parent
089c7181b8
commit
84e2423404
@ -352,7 +352,7 @@ func (m *Mock) AssertNumberOfCalls(t TestingT, methodName string, expectedCalls
|
||||
actualCalls++
|
||||
}
|
||||
}
|
||||
return assert.Equal(t, actualCalls, expectedCalls, fmt.Sprintf("Expected number of calls (%d) does not match the actual number of calls (%d).", expectedCalls, actualCalls))
|
||||
return assert.Equal(t, expectedCalls, actualCalls, fmt.Sprintf("Expected number of calls (%d) does not match the actual number of calls (%d).", expectedCalls, actualCalls))
|
||||
}
|
||||
|
||||
// AssertCalled asserts that the method was called.
|
||||
|
Loading…
x
Reference in New Issue
Block a user