From b830aebdb7a73eb37d7125e4ffa9d2111ac7fe63 Mon Sep 17 00:00:00 2001 From: Tevin Zhang Date: Tue, 30 Jun 2020 10:10:38 +0800 Subject: [PATCH] Enable parallel testing --- bool_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bool_test.go b/bool_test.go index 6fbd472..bc16f9e 100644 --- a/bool_test.go +++ b/bool_test.go @@ -8,6 +8,8 @@ import ( ) func TestBool(t *testing.T) { + t.Parallel() + v := NewBool(true) if !v.IsSet() { t.Fatal("NewValue(true) failed") @@ -119,6 +121,8 @@ func TestToogleAfterOverflow(t *testing.T) { } func TestRace(t *testing.T) { + t.Parallel() + repeat := 10000 var wg sync.WaitGroup wg.Add(repeat * 4)