mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-29 11:15:50 +00:00
* regenerate mocks using newer style * p2p: set empty timeouts to small values. (#8847) These timeouts default to 'do not time out' if they are not set. This times up resources, potentially indefinitely. If node on the other side of the the handshake is up but unresponsive, the[ handshake call](https://github.com/tendermint/tendermint/blob/edec79448aa1d62b84683b1b22e12e145dbdda7c/internal/p2p/router.go#L720) will _never_ return. * fix light client select statement
44 lines
1.2 KiB
Go
44 lines
1.2 KiB
Go
// Code generated by mockery. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
mock "github.com/stretchr/testify/mock"
|
|
state "github.com/tendermint/tendermint/internal/state"
|
|
)
|
|
|
|
// ConsSyncReactor is an autogenerated mock type for the ConsSyncReactor type
|
|
type ConsSyncReactor struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// SetBlockSyncingMetrics provides a mock function with given fields: _a0
|
|
func (_m *ConsSyncReactor) SetBlockSyncingMetrics(_a0 float64) {
|
|
_m.Called(_a0)
|
|
}
|
|
|
|
// SetStateSyncingMetrics provides a mock function with given fields: _a0
|
|
func (_m *ConsSyncReactor) SetStateSyncingMetrics(_a0 float64) {
|
|
_m.Called(_a0)
|
|
}
|
|
|
|
// SwitchToConsensus provides a mock function with given fields: _a0, _a1
|
|
func (_m *ConsSyncReactor) SwitchToConsensus(_a0 state.State, _a1 bool) {
|
|
_m.Called(_a0, _a1)
|
|
}
|
|
|
|
type NewConsSyncReactorT interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}
|
|
|
|
// NewConsSyncReactor creates a new instance of ConsSyncReactor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
|
func NewConsSyncReactor(t NewConsSyncReactorT) *ConsSyncReactor {
|
|
mock := &ConsSyncReactor{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|