fix linters warnings

This commit is contained in:
b00ris 2017-10-23 13:41:41 +03:00
parent 22fb4dfc30
commit 1de852134b
No known key found for this signature in database
GPG Key ID: 2F73E159EB73232C
4 changed files with 3 additions and 7 deletions

View File

@ -2,7 +2,6 @@ package main
import "C"
import (
"context"
"encoding/json"
"io/ioutil"
"math/big"

View File

@ -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.

View File

@ -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"

View File

@ -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)`