mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 14:35:47 +00:00
more linter love
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
dbc2767b5b
commit
ed9a2779d0
@ -25,9 +25,9 @@ func TestGMonitorActiveParticipants(t *testing.T) {
|
||||
monitor.LazyLoadMonitorMQTTClient()
|
||||
cfg := config.GetConfig()
|
||||
db, err := leveldb.OpenFile("./activeActors.db", nil)
|
||||
assert.NoError(t, err)
|
||||
defer db.Close()
|
||||
|
||||
assert.NoError(t, err)
|
||||
mqttMonitor := monitor.NewMqttMonitorService(db, *cfg)
|
||||
err = mqttMonitor.Start()
|
||||
assert.NoError(t, err)
|
||||
@ -44,7 +44,6 @@ func TestGMonitorActiveParticipants(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
assert.Contains(t, challenger, "plmnt")
|
||||
assert.Contains(t, challengee, "plmnt")
|
||||
|
||||
}
|
||||
|
||||
func TestCleanupRemoval(t *testing.T) {
|
||||
@ -52,8 +51,9 @@ func TestCleanupRemoval(t *testing.T) {
|
||||
|
||||
cfg := config.GetConfig()
|
||||
db, err := leveldb.OpenFile("./activeActors.db", nil)
|
||||
defer db.Close()
|
||||
assert.NoError(t, err)
|
||||
defer db.Close()
|
||||
|
||||
mqttMonitor := monitor.NewMqttMonitorService(db, *cfg)
|
||||
err = mqttMonitor.Start()
|
||||
assert.NoError(t, err)
|
||||
@ -78,8 +78,9 @@ func TestCleanupPrecisionTest(t *testing.T) {
|
||||
|
||||
cfg := config.GetConfig()
|
||||
db, err := leveldb.OpenFile("./activeActors.db", nil)
|
||||
defer db.Close()
|
||||
assert.NoError(t, err)
|
||||
defer db.Close()
|
||||
|
||||
mqttMonitor := monitor.NewMqttMonitorService(db, *cfg)
|
||||
err = mqttMonitor.Start()
|
||||
assert.NoError(t, err)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user