diff --git a/cmd/vote_test.go b/cmd/vote_test.go index 26e8d218..968fde2d 100644 --- a/cmd/vote_test.go +++ b/cmd/vote_test.go @@ -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)