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 "C"
import ( import (
"context"
"encoding/json" "encoding/json"
"io/ioutil" "io/ioutil"
"math/big" "math/big"

View File

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

View File

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

View File

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