From 7e05b816707e59286a34cce47df354b12b493f8c Mon Sep 17 00:00:00 2001 From: YashK Date: Thu, 29 Aug 2024 17:16:29 +0530 Subject: [PATCH] refactor: fixed vote tests --- cmd/vote_test.go | 1 + 1 file changed, 1 insertion(+) 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)