Remove test skips based on race detector

This commit is contained in:
Ben Johnson 2020-10-06 10:29:17 -06:00
parent 7b64abbb53
commit 2440413c49
4 changed files with 0 additions and 54 deletions

View file

@ -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

View file

@ -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

View file

@ -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) {

View file

@ -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) {