From f9c196e4188534247d107745060793c3cafeb2a1 Mon Sep 17 00:00:00 2001 From: Nia Weiss Date: Fri, 20 Nov 2020 12:12:24 -0500 Subject: [PATCH] skip roaring add test in race Otherwise it overloads the race detector. --- roaring/add_test.go | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/roaring/add_test.go b/roaring/add_test.go index da75b7847..1da117c56 100644 --- a/roaring/add_test.go +++ b/roaring/add_test.go @@ -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) } }