stat/distuv: run tests in parallel
MODIFY
stat/distuv/categorical_test.go
stat/distuv/categorical_test.go
@@ -114,6 +114,7 @@ func TestCategoricalRand(t *testing.T) {
}
func TestCategoricalReweight(t *testing.T) {
+ t.Parallel()
dist := NewCategorical([]float64{1, 1}, nil)
if !panics(func() { dist.Reweight(0, -1) }) {
t.Errorf("Reweight did not panic for negative weight")
@@ -125,6 +126,7 @@ func TestCategoricalReweight(t *testing.T) {
}
func TestCategoricalReweightAll(t *testing.T) {
+ t.Parallel()
w := []float64{0, 1, 2, 1}
dist := NewCategorical(w, nil)
if !panics(func() { dist.ReweightAll([]float64{1, 1}) }) {

MODIFY
stat/distuv/gamma_test.go
stat/distuv/gamma_test.go
@@ -102,6 +102,7 @@ func testGamma(t *testing.T, f Gamma, i int) {
}
func TestGammaPanics(t *testing.T) {
+ t.Parallel()
g := Gamma{1, 0, nil}
if !panics(func() { g.Rand() }) {
t.Errorf("Expected Rand panic for Beta <= 0")

stat/distuv: run tests in parallel