diff --git a/cmd/swarm/access_test.go b/cmd/swarm/access_test.go index 499af68c6a..38f1fae614 100644 --- a/cmd/swarm/access_test.go +++ b/cmd/swarm/access_test.go @@ -30,7 +30,6 @@ import ( "os" "runtime" "strings" - "sync" "testing" "time" @@ -50,17 +49,6 @@ const ( var DefaultCurve = crypto.S256() -const clusterSize = 3 - -var clusteronce sync.Once -var cluster *testCluster - -func initCluster(t *testing.T) { - clusteronce.Do(func() { - cluster = newTestCluster(t, clusterSize) - }) -} - func TestACT(t *testing.T) { if runtime.GOOS == "windows" { t.Skip() diff --git a/cmd/swarm/run_test.go b/cmd/swarm/run_test.go index 416fa7a503..680d238d06 100644 --- a/cmd/swarm/run_test.go +++ b/cmd/swarm/run_test.go @@ -57,6 +57,17 @@ func init() { }) } +const clusterSize = 3 + +var clusteronce sync.Once +var cluster *testCluster + +func initCluster(t *testing.T) { + clusteronce.Do(func() { + cluster = newTestCluster(t, clusterSize) + }) +} + func serverFunc(api *api.API) swarmhttp.TestServer { return swarmhttp.NewServer(api, "") }