diff options
author | Ferenc Szabo <frncmx@gmail.com> | 2019-01-06 18:58:57 +0800 |
---|---|---|
committer | Viktor TrĂ³n <viktor.tron@gmail.com> | 2019-01-06 18:58:57 +0800 |
commit | fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4 (patch) | |
tree | a23d6d5014d1b81d60e741b15e4616d4f18116a7 /p2p/simulations/mocker_test.go | |
parent | 072c95fb74ac108e93207a8052e641cfaf863105 (diff) | |
download | go-tangerine-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar go-tangerine-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.gz go-tangerine-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.bz2 go-tangerine-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.lz go-tangerine-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.xz go-tangerine-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.zst go-tangerine-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.zip |
A few minor code inspection fixes (#18393)
* swarm/network: fix code inspection problems
- typos
- redundant import alias
* p2p/simulations: fix code inspection problems
- typos
- unused function parameters
- redundant import alias
- code style issue: snake case
* swarm/network: fix unused method parameters inspections
Diffstat (limited to 'p2p/simulations/mocker_test.go')
-rw-r--r-- | p2p/simulations/mocker_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/p2p/simulations/mocker_test.go b/p2p/simulations/mocker_test.go index 7c7016a5e..192be1732 100644 --- a/p2p/simulations/mocker_test.go +++ b/p2p/simulations/mocker_test.go @@ -15,7 +15,7 @@ // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. // Package simulations simulates p2p networks. -// A mokcer simulates starting and stopping real nodes in a network. +// A mocker simulates starting and stopping real nodes in a network. package simulations import ( @@ -135,13 +135,13 @@ func TestMocker(t *testing.T) { wg.Wait() //check there are nodeCount number of nodes in the network - nodes_info, err := client.GetNodes() + nodesInfo, err := client.GetNodes() if err != nil { t.Fatalf("Could not get nodes list: %s", err) } - if len(nodes_info) != nodeCount { - t.Fatalf("Expected %d number of nodes, got: %d", nodeCount, len(nodes_info)) + if len(nodesInfo) != nodeCount { + t.Fatalf("Expected %d number of nodes, got: %d", nodeCount, len(nodesInfo)) } //stop the mocker @@ -160,12 +160,12 @@ func TestMocker(t *testing.T) { } //now the number of nodes in the network should be zero - nodes_info, err = client.GetNodes() + nodesInfo, err = client.GetNodes() if err != nil { t.Fatalf("Could not get nodes list: %s", err) } - if len(nodes_info) != 0 { - t.Fatalf("Expected empty list of nodes, got: %d", len(nodes_info)) + if len(nodesInfo) != 0 { + t.Fatalf("Expected empty list of nodes, got: %d", len(nodesInfo)) } } |