fix linters warnings
This commit is contained in:
parent
22fb4dfc30
commit
1de852134b
|
@ -2,7 +2,6 @@ package main
|
|||
|
||||
import "C"
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"math/big"
|
||||
|
|
|
@ -12,8 +12,7 @@ import (
|
|||
// NodeManagerTestSuite defines a test suit with NodeManager.
|
||||
type NodeManagerTestSuite struct {
|
||||
suite.Suite
|
||||
NodeManager common.NodeManager
|
||||
nodeSyncCompleted bool
|
||||
NodeManager common.NodeManager
|
||||
}
|
||||
|
||||
// StartTestNode initiazes a NodeManager instances with configuration retrieved
|
||||
|
@ -52,8 +51,7 @@ func (s *NodeManagerTestSuite) StopTestNode() {
|
|||
// and a few utility methods to start and stop node or get various services.
|
||||
type BackendTestSuite struct {
|
||||
suite.Suite
|
||||
Backend *api.StatusBackend
|
||||
nodeSyncCompleted bool
|
||||
Backend *api.StatusBackend
|
||||
}
|
||||
|
||||
// SetupTest initializes Backend.
|
||||
|
|
|
@ -9,8 +9,6 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"context"
|
||||
|
||||
"github.com/ethereum/go-ethereum/accounts/keystore"
|
||||
gethcommon "github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||
|
|
|
@ -20,6 +20,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
//nolint: unused, varcheck
|
||||
whisperMessage1 = `test message 1 (K1 -> K2, signed+encrypted, from us)`
|
||||
whisperMessage2 = `test message 3 (K1 -> "", signed broadcast)`
|
||||
whisperMessage3 = `test message 4 ("" -> "", anon broadcast)`
|
||||
|
|
Loading…
Reference in New Issue