skip roaring add test in race

Otherwise it overloads the race detector.
This commit is contained in:
Nia Weiss 2020-11-20 12:12:24 -05:00
parent 5d2c42b7bf
commit f9c196e418
No known key found for this signature in database
GPG key ID: 895E83409BFDA1BB

View file

@ -1,3 +1,19 @@
// Copyright 2020 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 roaring
import (
@ -353,7 +369,7 @@ func TestAdd(t *testing.T) {
for len(x) <= i {
x = append(x, NewBitmap())
}
x[i].Add(k)
x[i].DirectAdd(k)
}
}
for k, v := range yvals {
@ -368,7 +384,7 @@ func TestAdd(t *testing.T) {
for len(y) <= i {
y = append(y, NewBitmap())
}
y[i].Add(k)
y[i].DirectAdd(k)
}
}