mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 14:35:47 +00:00
satisfy the linters
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
faf4d88522
commit
c85c4f53b3
@ -10,7 +10,7 @@ type MockMQTTMonitorClientI struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AddParticipant mocks base method.
|
// AddParticipant mocks base method.
|
||||||
func (m *MockMQTTMonitorClientI) AddParticipant(address string, lastSeenTS int64) error {
|
func (m *MockMQTTMonitorClientI) AddParticipant(address string, _ int64) error {
|
||||||
m.myStringList = append(m.myStringList, address)
|
m.myStringList = append(m.myStringList, address)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@ -28,8 +28,7 @@ func (m *MockMQTTMonitorClientI) SelectPoPParticipantsOutOfActiveActors() (strin
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SetContext mocks base method.
|
// SetContext mocks base method.
|
||||||
func (m *MockMQTTMonitorClientI) SetContext(ctx types.Context) {
|
func (m *MockMQTTMonitorClientI) SetContext(_ types.Context) {
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start mocks base method.
|
// Start mocks base method.
|
||||||
|
|||||||
@ -165,7 +165,8 @@ func (s *SelectionE2ETestSuite) TestPopSelectionNoActors() {
|
|||||||
|
|
||||||
func (s *SelectionE2ETestSuite) TestPopSelectionOneActors() {
|
func (s *SelectionE2ETestSuite) TestPopSelectionOneActors() {
|
||||||
err := e2etestutil.AttestMachine(s.network, machines[0].name, machines[0].mnemonic, 0, s.feeDenom)
|
err := e2etestutil.AttestMachine(s.network, machines[0].name, machines[0].mnemonic, 0, s.feeDenom)
|
||||||
monitor.MqttMonitorInstance.AddParticipant(machines[0].address, time.Now().Unix())
|
s.Require().NoError(err)
|
||||||
|
err = monitor.MqttMonitorInstance.AddParticipant(machines[0].address, time.Now().Unix())
|
||||||
s.Require().NoError(err)
|
s.Require().NoError(err)
|
||||||
|
|
||||||
out := s.perpareLocalTest()
|
out := s.perpareLocalTest()
|
||||||
@ -176,7 +177,8 @@ func (s *SelectionE2ETestSuite) TestPopSelectionOneActors() {
|
|||||||
|
|
||||||
func (s *SelectionE2ETestSuite) TestPopSelectionTwoActors() {
|
func (s *SelectionE2ETestSuite) TestPopSelectionTwoActors() {
|
||||||
err := e2etestutil.AttestMachine(s.network, machines[1].name, machines[1].mnemonic, 1, s.feeDenom)
|
err := e2etestutil.AttestMachine(s.network, machines[1].name, machines[1].mnemonic, 1, s.feeDenom)
|
||||||
monitor.MqttMonitorInstance.AddParticipant(machines[1].address, time.Now().Unix())
|
s.Require().NoError(err)
|
||||||
|
err = monitor.MqttMonitorInstance.AddParticipant(machines[1].address, time.Now().Unix())
|
||||||
s.Require().NoError(err)
|
s.Require().NoError(err)
|
||||||
|
|
||||||
out := s.perpareLocalTest()
|
out := s.perpareLocalTest()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user