diff --git a/race/norace.go b/race/norace.go deleted file mode 100644 index 6626c8380..000000000 --- a/race/norace.go +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2017 Pilosa Corp. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// +build !race - -package race - -// Enabled is true if the -race flag is enabled. -const Enabled = false diff --git a/race/race.go b/race/race.go deleted file mode 100644 index a6fe765bc..000000000 --- a/race/race.go +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2017 Pilosa Corp. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// +build race - -package race - -// Enabled is true if the -race flag is enabled. -const Enabled = true diff --git a/rbf/cursor_test.go b/rbf/cursor_test.go index 401117d06..9f134a92e 100644 --- a/rbf/cursor_test.go +++ b/rbf/cursor_test.go @@ -23,7 +23,6 @@ import ( "strings" "testing" - "github.com/pilosa/pilosa/v2/race" "github.com/pilosa/pilosa/v2/rbf" "github.com/pilosa/pilosa/v2/roaring" ) @@ -77,8 +76,6 @@ func TestCursor_FirstNext_Quick(t *testing.T) { t.Skip("-short enabled, skipping") } else if is32Bit() { t.Skip("32-bit build, skipping quick check tests") - } else if race.Enabled { - t.Skip("race detection enabled, skipping") } const n = 10000 @@ -199,8 +196,6 @@ func TestCursor_LastPrev_Quick(t *testing.T) { t.Skip("-short enabled, skipping") } else if is32Bit() { t.Skip("32-bit build, skipping quick check tests") - } else if race.Enabled { - t.Skip("race detection enabled, skipping") } const n = 10000 @@ -313,8 +308,6 @@ func TestCursor_Union(t *testing.T) { t.Skip("-short enabled, skipping") } else if is32Bit() { t.Skip("32-bit build, skipping quick check tests") - } else if race.Enabled { - t.Skip("race detection enabled, skipping") } QuickCheck(t, func(t *testing.T, rand *rand.Rand) { @@ -394,8 +387,6 @@ func TestCursor_Intersect(t *testing.T) { t.Skip("-short enabled, skipping") } else if is32Bit() { t.Skip("32-bit build, skipping quick check tests") - } else if race.Enabled { - t.Skip("race detection enabled, skipping") } QuickCheck(t, func(t *testing.T, rand *rand.Rand) { diff --git a/rbf/tx_test.go b/rbf/tx_test.go index 7e723aa8a..2d5505a4a 100644 --- a/rbf/tx_test.go +++ b/rbf/tx_test.go @@ -21,7 +21,6 @@ import ( "testing" "time" - "github.com/pilosa/pilosa/v2/race" "github.com/pilosa/pilosa/v2/rbf" "github.com/pilosa/pilosa/v2/txkey" ) @@ -219,8 +218,6 @@ func TestTx_Add_Quick(t *testing.T) { t.Skip("-short enabled, skipping") } else if is32Bit() { t.Skip("32-bit build, skipping quick check tests") - } else if race.Enabled { - t.Skip("race detection enabled, skipping") } QuickCheck(t, func(t *testing.T, rand *rand.Rand) { @@ -258,8 +255,6 @@ func TestTx_AddRemove_Quick(t *testing.T) { t.Skip("-short enabled, skipping") } else if is32Bit() { t.Skip("32-bit build, skipping quick check tests") - } else if race.Enabled { - t.Skip("race detection enabled, skipping") } QuickCheck(t, func(t *testing.T, rand *rand.Rand) {