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
|
||||
lightNode bool
|
||||
}{
|
||||
}{
|
||||
{"on", true},
|
||||
{"off", false},
|
||||
}
|
||||
}
|
||||
|
||||
func TestBzzHandshakeLightNode(t *testing.T) {
|
||||
for _, test := range lightNodeTests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
randomAddr := RandomAddr()
|
||||
|
|
|
|||
Loading…
Reference in a new issue