Skip to content

Commit

Permalink
refactor: fixed vote tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashk767 committed Aug 29, 2024
1 parent ac06a60 commit 7e05b81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/vote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func TestExecuteVote(t *testing.T) {

fileUtilsMock.On("AssignLogFile", mock.AnythingOfType("*pflag.FlagSet"), mock.Anything)
cmdUtilsMock.On("GetConfigData").Return(tt.args.config, tt.args.configErr)
utilsMock.On("GetStateBuffer", mock.Anything).Return(uint64(5), nil)
utilsMock.On("AssignPassword", flagSet).Return(tt.args.password)
utilsMock.On("CheckPassword", mock.Anything).Return(nil)
utilsMock.On("AccountManagerForKeystore").Return(&accounts.AccountManager{}, nil)
Expand Down

0 comments on commit 7e05b81

Please sign in to comment.