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