mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
swarm/network: Moved the test configuration inside the test function scope
This commit is contained in:
parent
c807e0065b
commit
022c7f4d5f
1 changed files with 8 additions and 8 deletions
|
|
@ -255,15 +255,15 @@ func TestBzzHandshakeSuccess(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var lightNodeTests = []struct {
|
func TestBzzHandshakeLightNode(t *testing.T) {
|
||||||
|
var lightNodeTests = []struct {
|
||||||
name string
|
name string
|
||||||
lightNode bool
|
lightNode bool
|
||||||
}{
|
}{
|
||||||
{"on", true},
|
{"on", true},
|
||||||
{"off", false},
|
{"off", false},
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBzzHandshakeLightNode(t *testing.T) {
|
|
||||||
for _, test := range lightNodeTests {
|
for _, test := range lightNodeTests {
|
||||||
t.Run(test.name, func(t *testing.T) {
|
t.Run(test.name, func(t *testing.T) {
|
||||||
randomAddr := RandomAddr()
|
randomAddr := RandomAddr()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue