diff --git a/swarm/network/stream/stream_not_race_test.go b/swarm/network/stream/norace_test.go similarity index 97% rename from swarm/network/stream/stream_not_race_test.go rename to swarm/network/stream/norace_test.go index 953646f19a..b324f6939c 100644 --- a/swarm/network/stream/stream_not_race_test.go +++ b/swarm/network/stream/norace_test.go @@ -21,4 +21,4 @@ package stream // Provide a flag to reduce the scope of tests when running them // with race detector. Some of the tests are doing a lot of allocations // on the heap, and race detector uses much more memory to track them. -var raceTest = false +const raceTest = false diff --git a/swarm/network/stream/stream_race_test.go b/swarm/network/stream/race_test.go similarity index 97% rename from swarm/network/stream/stream_race_test.go rename to swarm/network/stream/race_test.go index 9d28314277..8aed3542bf 100644 --- a/swarm/network/stream/stream_race_test.go +++ b/swarm/network/stream/race_test.go @@ -20,4 +20,4 @@ package stream // Reduce the scope of some tests when running with race detector, // as it raises the memory consumption significantly. -var raceTest = true +const raceTest = true