para: Skip para test when not on CI

Fixes #6963
This commit is contained in:
Bjørn Erik Pedersen
2020-12-23 19:47:20 +01:00
parent f802bb236a
commit a9718f44cd
9 changed files with 21 additions and 13 deletions

View File

@@ -22,6 +22,8 @@ import (
"testing"
"time"
"github.com/gohugoio/hugo/htesting"
qt "github.com/frankban/quicktest"
)
@@ -30,6 +32,10 @@ func TestPara(t *testing.T) {
t.Skipf("skip para test, CPU count is %d", runtime.NumCPU())
}
if !htesting.IsCI() {
t.Skip("skip para test when not running on CI")
}
c := qt.New(t)
c.Run("Order", func(c *qt.C) {