mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 06:25: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.
|
||||
func (m *MockMQTTMonitorClientI) AddParticipant(address string, lastSeenTS int64) error {
|
||||
func (m *MockMQTTMonitorClientI) AddParticipant(address string, _ int64) error {
|
||||
m.myStringList = append(m.myStringList, address)
|
||||
|
||||
return nil
|
||||
@ -28,8 +28,7 @@ func (m *MockMQTTMonitorClientI) SelectPoPParticipantsOutOfActiveActors() (strin
|
||||
}
|
||||
|
||||
// SetContext mocks base method.
|
||||
func (m *MockMQTTMonitorClientI) SetContext(ctx types.Context) {
|
||||
return
|
||||
func (m *MockMQTTMonitorClientI) SetContext(_ types.Context) {
|
||||
}
|
||||
|
||||
// Start mocks base method.
|
||||
|
||||
@ -165,7 +165,8 @@ func (s *SelectionE2ETestSuite) TestPopSelectionNoActors() {
|
||||
|
||||
func (s *SelectionE2ETestSuite) TestPopSelectionOneActors() {
|
||||
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)
|
||||
|
||||
out := s.perpareLocalTest()
|
||||
@ -176,7 +177,8 @@ func (s *SelectionE2ETestSuite) TestPopSelectionOneActors() {
|
||||
|
||||
func (s *SelectionE2ETestSuite) TestPopSelectionTwoActors() {
|
||||
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)
|
||||
|
||||
out := s.perpareLocalTest()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user