From baed0296294c5a01f5df9ec5b35e6553f8bc7388 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Tue, 12 Feb 2019 14:42:05 +0100 Subject: [PATCH] swarm/network/stream: rename race/norace test files and use const --- .../network/stream/{stream_not_race_test.go => norace_test.go} | 2 +- swarm/network/stream/{stream_race_test.go => race_test.go} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename swarm/network/stream/{stream_not_race_test.go => norace_test.go} (97%) rename swarm/network/stream/{stream_race_test.go => race_test.go} (97%) 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