From 022c7f4d5ff865b7351af2211c336e7b59b126af Mon Sep 17 00:00:00 2001 From: Attila Gazso Date: Tue, 31 Jul 2018 16:06:02 +0200 Subject: [PATCH] swarm/network: Moved the test configuration inside the test function scope --- swarm/network/protocol_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/swarm/network/protocol_test.go b/swarm/network/protocol_test.go index 3ef32a7089..b74b72c68b 100644 --- a/swarm/network/protocol_test.go +++ b/swarm/network/protocol_test.go @@ -255,15 +255,15 @@ func TestBzzHandshakeSuccess(t *testing.T) { } } -var lightNodeTests = []struct { - name string - lightNode bool -}{ - {"on", true}, - {"off", false}, -} - func TestBzzHandshakeLightNode(t *testing.T) { + var lightNodeTests = []struct { + name string + lightNode bool + }{ + {"on", true}, + {"off", false}, + } + for _, test := range lightNodeTests { t.Run(test.name, func(t *testing.T) { randomAddr := RandomAddr()