From 42c9ecc218443e33be5088316884199b6b7c6d50 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:56:16 +0100 Subject: [PATCH] chore: regenerate mocks --- abci/client/mocks/client.go | 8 +++---- dash/core/mocks/client.go | 8 +++---- internal/consensus/mocks/gossiper.go | 12 +++++----- .../selectproposer/mocks/proposerselector.go | 4 ++-- internal/evidence/mocks/blockstore.go | 4 ++-- internal/mempool/mocks/mempool.go | 22 +++++++++---------- internal/p2p/mocks/channel.go | 4 ++-- internal/p2p/mocks/connection.go | 8 +++---- internal/p2p/mocks/transport.go | 10 ++++----- internal/state/indexer/mocks/eventsink.go | 4 ++-- internal/state/mocks/blockstore.go | 14 ++++++------ internal/state/mocks/evidencepool.go | 2 +- internal/state/mocks/executor.go | 2 +- internal/state/mocks/store.go | 4 ++-- libs/store/mocks/store.go | 12 +++++----- light/provider/mocks/provider.go | 2 +- light/rpc/mocks/lightclient.go | 2 +- rpc/client/mocks/remoteclient.go | 2 +- types/mocks/privvalidator.go | 2 +- 19 files changed, 63 insertions(+), 63 deletions(-) diff --git a/abci/client/mocks/client.go b/abci/client/mocks/client.go index a639902562..7c2d062858 100644 --- a/abci/client/mocks/client.go +++ b/abci/client/mocks/client.go @@ -199,7 +199,7 @@ func (_c *Client_Echo_Call) RunAndReturn(run func(context.Context, string) (*typ return _c } -// Error provides a mock function with given fields: +// Error provides a mock function with no fields func (_m *Client) Error() error { ret := _m.Called() @@ -526,7 +526,7 @@ func (_c *Client_InitChain_Call) RunAndReturn(run func(context.Context, *types.R return _c } -// IsRunning provides a mock function with given fields: +// IsRunning provides a mock function with no fields func (_m *Client) IsRunning() bool { ret := _m.Called() @@ -1030,7 +1030,7 @@ func (_c *Client_VerifyVoteExtension_Call) RunAndReturn(run func(context.Context return _c } -// Wait provides a mock function with given fields: +// Wait provides a mock function with no fields func (_m *Client) Wait() { _m.Called() } @@ -1058,7 +1058,7 @@ func (_c *Client_Wait_Call) Return() *Client_Wait_Call { } func (_c *Client_Wait_Call) RunAndReturn(run func()) *Client_Wait_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/dash/core/mocks/client.go b/dash/core/mocks/client.go index 677f59b943..34625cd015 100644 --- a/dash/core/mocks/client.go +++ b/dash/core/mocks/client.go @@ -24,7 +24,7 @@ func (_m *Client) EXPECT() *Client_Expecter { return &Client_Expecter{mock: &_m.Mock} } -// Close provides a mock function with given fields: +// Close provides a mock function with no fields func (_m *Client) Close() error { ret := _m.Called() @@ -69,7 +69,7 @@ func (_c *Client_Close_Call) RunAndReturn(run func() error) *Client_Close_Call { return _c } -// GetNetworkInfo provides a mock function with given fields: +// GetNetworkInfo provides a mock function with no fields func (_m *Client) GetNetworkInfo() (*btcjson.GetNetworkInfoResult, error) { ret := _m.Called() @@ -184,7 +184,7 @@ func (_c *Client_MasternodeListJSON_Call) RunAndReturn(run func(string) (map[str return _c } -// MasternodeStatus provides a mock function with given fields: +// MasternodeStatus provides a mock function with no fields func (_m *Client) MasternodeStatus() (*btcjson.MasternodeStatusResult, error) { ret := _m.Called() @@ -241,7 +241,7 @@ func (_c *Client_MasternodeStatus_Call) RunAndReturn(run func() (*btcjson.Master return _c } -// Ping provides a mock function with given fields: +// Ping provides a mock function with no fields func (_m *Client) Ping() error { ret := _m.Called() diff --git a/internal/consensus/mocks/gossiper.go b/internal/consensus/mocks/gossiper.go index 22a3d374aa..e4548d1c62 100644 --- a/internal/consensus/mocks/gossiper.go +++ b/internal/consensus/mocks/gossiper.go @@ -53,7 +53,7 @@ func (_c *Gossiper_GossipBlockPartsForCatchup_Call) Return() *Gossiper_GossipBlo } func (_c *Gossiper_GossipBlockPartsForCatchup_Call) RunAndReturn(run func(context.Context, types.RoundState, *types.PeerRoundState)) *Gossiper_GossipBlockPartsForCatchup_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -88,7 +88,7 @@ func (_c *Gossiper_GossipCommit_Call) Return() *Gossiper_GossipCommit_Call { } func (_c *Gossiper_GossipCommit_Call) RunAndReturn(run func(context.Context, types.RoundState, *types.PeerRoundState)) *Gossiper_GossipCommit_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -123,7 +123,7 @@ func (_c *Gossiper_GossipProposal_Call) Return() *Gossiper_GossipProposal_Call { } func (_c *Gossiper_GossipProposal_Call) RunAndReturn(run func(context.Context, types.RoundState, *types.PeerRoundState)) *Gossiper_GossipProposal_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -158,7 +158,7 @@ func (_c *Gossiper_GossipProposalBlockParts_Call) Return() *Gossiper_GossipPropo } func (_c *Gossiper_GossipProposalBlockParts_Call) RunAndReturn(run func(context.Context, types.RoundState, *types.PeerRoundState)) *Gossiper_GossipProposalBlockParts_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -193,7 +193,7 @@ func (_c *Gossiper_GossipVote_Call) Return() *Gossiper_GossipVote_Call { } func (_c *Gossiper_GossipVote_Call) RunAndReturn(run func(context.Context, types.RoundState, *types.PeerRoundState)) *Gossiper_GossipVote_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -228,7 +228,7 @@ func (_c *Gossiper_GossipVoteSetMaj23_Call) Return() *Gossiper_GossipVoteSetMaj2 } func (_c *Gossiper_GossipVoteSetMaj23_Call) RunAndReturn(run func(context.Context, types.RoundState, *types.PeerRoundState)) *Gossiper_GossipVoteSetMaj23_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/internal/consensus/versioned/selectproposer/mocks/proposerselector.go b/internal/consensus/versioned/selectproposer/mocks/proposerselector.go index 6daf7600ac..bcee70886a 100644 --- a/internal/consensus/versioned/selectproposer/mocks/proposerselector.go +++ b/internal/consensus/versioned/selectproposer/mocks/proposerselector.go @@ -21,7 +21,7 @@ func (_m *ProposerSelector) EXPECT() *ProposerSelector_Expecter { return &ProposerSelector_Expecter{mock: &_m.Mock} } -// Copy provides a mock function with given fields: +// Copy provides a mock function with no fields func (_m *ProposerSelector) Copy() selectproposer.ProposerSelector { ret := _m.Called() @@ -223,7 +223,7 @@ func (_c *ProposerSelector_UpdateHeightRound_Call) RunAndReturn(run func(int64, return _c } -// ValidatorSet provides a mock function with given fields: +// ValidatorSet provides a mock function with no fields func (_m *ProposerSelector) ValidatorSet() *types.ValidatorSet { ret := _m.Called() diff --git a/internal/evidence/mocks/blockstore.go b/internal/evidence/mocks/blockstore.go index 0d34b27b21..cc27dc4d2a 100644 --- a/internal/evidence/mocks/blockstore.go +++ b/internal/evidence/mocks/blockstore.go @@ -20,7 +20,7 @@ func (_m *BlockStore) EXPECT() *BlockStore_Expecter { return &BlockStore_Expecter{mock: &_m.Mock} } -// Base provides a mock function with given fields: +// Base provides a mock function with no fields func (_m *BlockStore) Base() int64 { ret := _m.Called() @@ -65,7 +65,7 @@ func (_c *BlockStore_Base_Call) RunAndReturn(run func() int64) *BlockStore_Base_ return _c } -// Height provides a mock function with given fields: +// Height provides a mock function with no fields func (_m *BlockStore) Height() int64 { ret := _m.Called() diff --git a/internal/mempool/mocks/mempool.go b/internal/mempool/mocks/mempool.go index 671bbea635..b8a04669f3 100644 --- a/internal/mempool/mocks/mempool.go +++ b/internal/mempool/mocks/mempool.go @@ -76,7 +76,7 @@ func (_c *Mempool_CheckTx_Call) RunAndReturn(run func(context.Context, types.Tx, return _c } -// EnableTxsAvailable provides a mock function with given fields: +// EnableTxsAvailable provides a mock function with no fields func (_m *Mempool) EnableTxsAvailable() { _m.Called() } @@ -104,11 +104,11 @@ func (_c *Mempool_EnableTxsAvailable_Call) Return() *Mempool_EnableTxsAvailable_ } func (_c *Mempool_EnableTxsAvailable_Call) RunAndReturn(run func()) *Mempool_EnableTxsAvailable_Call { - _c.Call.Return(run) + _c.Run(run) return _c } -// Flush provides a mock function with given fields: +// Flush provides a mock function with no fields func (_m *Mempool) Flush() { _m.Called() } @@ -136,7 +136,7 @@ func (_c *Mempool_Flush_Call) Return() *Mempool_Flush_Call { } func (_c *Mempool_Flush_Call) RunAndReturn(run func()) *Mempool_Flush_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -186,7 +186,7 @@ func (_c *Mempool_FlushAppConn_Call) RunAndReturn(run func(context.Context) erro return _c } -// Lock provides a mock function with given fields: +// Lock provides a mock function with no fields func (_m *Mempool) Lock() { _m.Called() } @@ -214,7 +214,7 @@ func (_c *Mempool_Lock_Call) Return() *Mempool_Lock_Call { } func (_c *Mempool_Lock_Call) RunAndReturn(run func()) *Mempool_Lock_Call { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -361,7 +361,7 @@ func (_c *Mempool_RemoveTxByKey_Call) RunAndReturn(run func(types.TxKey) error) return _c } -// Size provides a mock function with given fields: +// Size provides a mock function with no fields func (_m *Mempool) Size() int { ret := _m.Called() @@ -406,7 +406,7 @@ func (_c *Mempool_Size_Call) RunAndReturn(run func() int) *Mempool_Size_Call { return _c } -// SizeBytes provides a mock function with given fields: +// SizeBytes provides a mock function with no fields func (_m *Mempool) SizeBytes() int64 { ret := _m.Called() @@ -451,7 +451,7 @@ func (_c *Mempool_SizeBytes_Call) RunAndReturn(run func() int64) *Mempool_SizeBy return _c } -// TxsAvailable provides a mock function with given fields: +// TxsAvailable provides a mock function with no fields func (_m *Mempool) TxsAvailable() <-chan struct{} { ret := _m.Called() @@ -498,7 +498,7 @@ func (_c *Mempool_TxsAvailable_Call) RunAndReturn(run func() <-chan struct{}) *M return _c } -// Unlock provides a mock function with given fields: +// Unlock provides a mock function with no fields func (_m *Mempool) Unlock() { _m.Called() } @@ -526,7 +526,7 @@ func (_c *Mempool_Unlock_Call) Return() *Mempool_Unlock_Call { } func (_c *Mempool_Unlock_Call) RunAndReturn(run func()) *Mempool_Unlock_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/internal/p2p/mocks/channel.go b/internal/p2p/mocks/channel.go index 9ff79d4f5f..9af5e12e5d 100644 --- a/internal/p2p/mocks/channel.go +++ b/internal/p2p/mocks/channel.go @@ -22,7 +22,7 @@ func (_m *Channel) EXPECT() *Channel_Expecter { return &Channel_Expecter{mock: &_m.Mock} } -// Err provides a mock function with given fields: +// Err provides a mock function with no fields func (_m *Channel) Err() error { ret := _m.Called() @@ -209,7 +209,7 @@ func (_c *Channel_SendError_Call) RunAndReturn(run func(context.Context, p2p.Pee return _c } -// String provides a mock function with given fields: +// String provides a mock function with no fields func (_m *Channel) String() string { ret := _m.Called() diff --git a/internal/p2p/mocks/connection.go b/internal/p2p/mocks/connection.go index 1b0611d4b6..fd1fcad61f 100644 --- a/internal/p2p/mocks/connection.go +++ b/internal/p2p/mocks/connection.go @@ -28,7 +28,7 @@ func (_m *Connection) EXPECT() *Connection_Expecter { return &Connection_Expecter{mock: &_m.Mock} } -// Close provides a mock function with given fields: +// Close provides a mock function with no fields func (_m *Connection) Close() error { ret := _m.Called() @@ -141,7 +141,7 @@ func (_c *Connection_Handshake_Call) RunAndReturn(run func(context.Context, time return _c } -// LocalEndpoint provides a mock function with given fields: +// LocalEndpoint provides a mock function with no fields func (_m *Connection) LocalEndpoint() p2p.Endpoint { ret := _m.Called() @@ -251,7 +251,7 @@ func (_c *Connection_ReceiveMessage_Call) RunAndReturn(run func(context.Context) return _c } -// RemoteEndpoint provides a mock function with given fields: +// RemoteEndpoint provides a mock function with no fields func (_m *Connection) RemoteEndpoint() p2p.Endpoint { ret := _m.Called() @@ -344,7 +344,7 @@ func (_c *Connection_SendMessage_Call) RunAndReturn(run func(context.Context, p2 return _c } -// String provides a mock function with given fields: +// String provides a mock function with no fields func (_m *Connection) String() string { ret := _m.Called() diff --git a/internal/p2p/mocks/transport.go b/internal/p2p/mocks/transport.go index 90cc99b416..9ad3323d8d 100644 --- a/internal/p2p/mocks/transport.go +++ b/internal/p2p/mocks/transport.go @@ -109,11 +109,11 @@ func (_c *Transport_AddChannelDescriptors_Call) Return() *Transport_AddChannelDe } func (_c *Transport_AddChannelDescriptors_Call) RunAndReturn(run func([]*p2p.ChannelDescriptor)) *Transport_AddChannelDescriptors_Call { - _c.Call.Return(run) + _c.Run(run) return _c } -// Close provides a mock function with given fields: +// Close provides a mock function with no fields func (_m *Transport) Close() error { ret := _m.Called() @@ -217,7 +217,7 @@ func (_c *Transport_Dial_Call) RunAndReturn(run func(context.Context, *p2p.Endpo return _c } -// Endpoint provides a mock function with given fields: +// Endpoint provides a mock function with no fields func (_m *Transport) Endpoint() (*p2p.Endpoint, error) { ret := _m.Called() @@ -320,7 +320,7 @@ func (_c *Transport_Listen_Call) RunAndReturn(run func(*p2p.Endpoint) error) *Tr return _c } -// Protocols provides a mock function with given fields: +// Protocols provides a mock function with no fields func (_m *Transport) Protocols() []p2p.Protocol { ret := _m.Called() @@ -367,7 +367,7 @@ func (_c *Transport_Protocols_Call) RunAndReturn(run func() []p2p.Protocol) *Tra return _c } -// String provides a mock function with given fields: +// String provides a mock function with no fields func (_m *Transport) String() string { ret := _m.Called() diff --git a/internal/state/indexer/mocks/eventsink.go b/internal/state/indexer/mocks/eventsink.go index a40a3729d3..1d9d86ec3b 100644 --- a/internal/state/indexer/mocks/eventsink.go +++ b/internal/state/indexer/mocks/eventsink.go @@ -352,7 +352,7 @@ func (_c *EventSink_SearchTxEvents_Call) RunAndReturn(run func(context.Context, return _c } -// Stop provides a mock function with given fields: +// Stop provides a mock function with no fields func (_m *EventSink) Stop() error { ret := _m.Called() @@ -397,7 +397,7 @@ func (_c *EventSink_Stop_Call) RunAndReturn(run func() error) *EventSink_Stop_Ca return _c } -// Type provides a mock function with given fields: +// Type provides a mock function with no fields func (_m *EventSink) Type() indexer.EventSinkType { ret := _m.Called() diff --git a/internal/state/mocks/blockstore.go b/internal/state/mocks/blockstore.go index dc3b8e9e0e..388e81e133 100644 --- a/internal/state/mocks/blockstore.go +++ b/internal/state/mocks/blockstore.go @@ -21,7 +21,7 @@ func (_m *BlockStore) EXPECT() *BlockStore_Expecter { return &BlockStore_Expecter{mock: &_m.Mock} } -// Base provides a mock function with given fields: +// Base provides a mock function with no fields func (_m *BlockStore) Base() int64 { ret := _m.Called() @@ -66,7 +66,7 @@ func (_c *BlockStore_Base_Call) RunAndReturn(run func() int64) *BlockStore_Base_ return _c } -// CoreChainLockedHeight provides a mock function with given fields: +// CoreChainLockedHeight provides a mock function with no fields func (_m *BlockStore) CoreChainLockedHeight() uint32 { ret := _m.Called() @@ -111,7 +111,7 @@ func (_c *BlockStore_CoreChainLockedHeight_Call) RunAndReturn(run func() uint32) return _c } -// Height provides a mock function with given fields: +// Height provides a mock function with no fields func (_m *BlockStore) Height() int64 { ret := _m.Called() @@ -156,7 +156,7 @@ func (_c *BlockStore_Height_Call) RunAndReturn(run func() int64) *BlockStore_Hei return _c } -// LoadBaseMeta provides a mock function with given fields: +// LoadBaseMeta provides a mock function with no fields func (_m *BlockStore) LoadBaseMeta() *types.BlockMeta { ret := _m.Called() @@ -492,7 +492,7 @@ func (_c *BlockStore_LoadBlockPart_Call) RunAndReturn(run func(int64, int) *type return _c } -// LoadSeenCommit provides a mock function with given fields: +// LoadSeenCommit provides a mock function with no fields func (_m *BlockStore) LoadSeenCommit() *types.Commit { ret := _m.Called() @@ -674,11 +674,11 @@ func (_c *BlockStore_SaveBlock_Call) Return() *BlockStore_SaveBlock_Call { } func (_c *BlockStore_SaveBlock_Call) RunAndReturn(run func(*types.Block, *types.PartSet, *types.Commit)) *BlockStore_SaveBlock_Call { - _c.Call.Return(run) + _c.Run(run) return _c } -// Size provides a mock function with given fields: +// Size provides a mock function with no fields func (_m *BlockStore) Size() int64 { ret := _m.Called() diff --git a/internal/state/mocks/evidencepool.go b/internal/state/mocks/evidencepool.go index 3b2f161f34..1491806b7d 100644 --- a/internal/state/mocks/evidencepool.go +++ b/internal/state/mocks/evidencepool.go @@ -207,7 +207,7 @@ func (_c *EvidencePool_Update_Call) Return() *EvidencePool_Update_Call { } func (_c *EvidencePool_Update_Call) RunAndReturn(run func(context.Context, state.State, types.EvidenceList)) *EvidencePool_Update_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/internal/state/mocks/executor.go b/internal/state/mocks/executor.go index 23a56e2b5a..a1a19d63ec 100644 --- a/internal/state/mocks/executor.go +++ b/internal/state/mocks/executor.go @@ -185,7 +185,7 @@ func (_c *Executor_ExtendVote_Call) Return() *Executor_ExtendVote_Call { } func (_c *Executor_ExtendVote_Call) RunAndReturn(run func(context.Context, *types.Vote)) *Executor_ExtendVote_Call { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/internal/state/mocks/store.go b/internal/state/mocks/store.go index 556985c83c..499ce2c313 100644 --- a/internal/state/mocks/store.go +++ b/internal/state/mocks/store.go @@ -71,7 +71,7 @@ func (_c *Store_Bootstrap_Call) RunAndReturn(run func(state.State) error) *Store return _c } -// Close provides a mock function with given fields: +// Close provides a mock function with no fields func (_m *Store) Close() error { ret := _m.Called() @@ -116,7 +116,7 @@ func (_c *Store_Close_Call) RunAndReturn(run func() error) *Store_Close_Call { return _c } -// Load provides a mock function with given fields: +// Load provides a mock function with no fields func (_m *Store) Load() (state.State, error) { ret := _m.Called() diff --git a/libs/store/mocks/store.go b/libs/store/mocks/store.go index 35a2948758..bf43f9b904 100644 --- a/libs/store/mocks/store.go +++ b/libs/store/mocks/store.go @@ -20,7 +20,7 @@ func (_m *Store[K, V]) EXPECT() *Store_Expecter[K, V] { return &Store_Expecter[K, V]{mock: &_m.Mock} } -// All provides a mock function with given fields: +// All provides a mock function with no fields func (_m *Store[K, V]) All() []V { ret := _m.Called() @@ -96,7 +96,7 @@ func (_c *Store_Delete_Call[K, V]) Return() *Store_Delete_Call[K, V] { } func (_c *Store_Delete_Call[K, V]) RunAndReturn(run func(K)) *Store_Delete_Call[K, V] { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -216,7 +216,7 @@ func (_c *Store_GetAndDelete_Call[K, V]) RunAndReturn(run func(K) (V, bool)) *St return _c } -// IsZero provides a mock function with given fields: +// IsZero provides a mock function with no fields func (_m *Store[K, V]) IsZero() bool { ret := _m.Called() @@ -261,7 +261,7 @@ func (_c *Store_IsZero_Call[K, V]) RunAndReturn(run func() bool) *Store_IsZero_C return _c } -// Len provides a mock function with given fields: +// Len provides a mock function with no fields func (_m *Store[K, V]) Len() int { ret := _m.Called() @@ -336,7 +336,7 @@ func (_c *Store_Put_Call[K, V]) Return() *Store_Put_Call[K, V] { } func (_c *Store_Put_Call[K, V]) RunAndReturn(run func(K, V)) *Store_Put_Call[K, V] { - _c.Call.Return(run) + _c.Run(run) return _c } @@ -433,7 +433,7 @@ func (_c *Store_Update_Call[K, V]) Return() *Store_Update_Call[K, V] { } func (_c *Store_Update_Call[K, V]) RunAndReturn(run func(K, ...store.UpdateFunc[K, V])) *Store_Update_Call[K, V] { - _c.Call.Return(run) + _c.Run(run) return _c } diff --git a/light/provider/mocks/provider.go b/light/provider/mocks/provider.go index 137e9958b0..08e6a15f5e 100644 --- a/light/provider/mocks/provider.go +++ b/light/provider/mocks/provider.go @@ -23,7 +23,7 @@ func (_m *Provider) EXPECT() *Provider_Expecter { return &Provider_Expecter{mock: &_m.Mock} } -// ID provides a mock function with given fields: +// ID provides a mock function with no fields func (_m *Provider) ID() string { ret := _m.Called() diff --git a/light/rpc/mocks/lightclient.go b/light/rpc/mocks/lightclient.go index 6edc4304d1..0856f41f81 100644 --- a/light/rpc/mocks/lightclient.go +++ b/light/rpc/mocks/lightclient.go @@ -25,7 +25,7 @@ func (_m *LightClient) EXPECT() *LightClient_Expecter { return &LightClient_Expecter{mock: &_m.Mock} } -// ChainID provides a mock function with given fields: +// ChainID provides a mock function with no fields func (_m *LightClient) ChainID() string { ret := _m.Called() diff --git a/rpc/client/mocks/remoteclient.go b/rpc/client/mocks/remoteclient.go index 1fed245b7e..91f48561fc 100644 --- a/rpc/client/mocks/remoteclient.go +++ b/rpc/client/mocks/remoteclient.go @@ -1562,7 +1562,7 @@ func (_c *RemoteClient_NumUnconfirmedTxs_Call) RunAndReturn(run func(context.Con return _c } -// Remote provides a mock function with given fields: +// Remote provides a mock function with no fields func (_m *RemoteClient) Remote() string { ret := _m.Called() diff --git a/types/mocks/privvalidator.go b/types/mocks/privvalidator.go index dc21796ed0..f875b0c42e 100644 --- a/types/mocks/privvalidator.go +++ b/types/mocks/privvalidator.go @@ -577,7 +577,7 @@ func (_c *PrivValidator_UpdatePrivateKey_Call) Return() *PrivValidator_UpdatePri } func (_c *PrivValidator_UpdatePrivateKey_Call) RunAndReturn(run func(context.Context, crypto.PrivKey, crypto.QuorumHash, crypto.PubKey, int64)) *PrivValidator_UpdatePrivateKey_Call { - _c.Call.Return(run) + _c.Run(run) return _c }