Fix slow-ass code
This commit is contained in:
@ -243,8 +243,8 @@ func TestCreateVotes_UnknownVotersElection(t *testing.T) {
|
||||
On("Exists", mock.Anything, mock.Anything).
|
||||
Return(false, nil)
|
||||
mockVoters.
|
||||
On("Insert", mock.Anything, mock.Anything).
|
||||
Return(1, nil)
|
||||
On("InsertMultiple", mock.Anything, mock.Anything).
|
||||
Return([]int{1}, nil)
|
||||
mockVoters.
|
||||
On("CountByElection", mock.Anything).
|
||||
Return(0, nil)
|
||||
@ -634,8 +634,8 @@ func TestCreateVotes_UnknownVotersElectionMaxVotersReached(t *testing.T) {
|
||||
On("Exists", mock.Anything, mock.Anything).
|
||||
Return(false, nil)
|
||||
mockVoters.
|
||||
On("Insert", mock.Anything, mock.Anything).
|
||||
Return(1, nil)
|
||||
On("InsertMultiple", mock.Anything, mock.Anything).
|
||||
Return([]int{1}, nil)
|
||||
mockVoters.
|
||||
On("CountByElection", mock.Anything).
|
||||
Return(10, nil)
|
||||
|
Reference in New Issue
Block a user