diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-12-23 21:47:20 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-12-23 21:47:20 +0300 |
commit | a9718f44cd6c938448fc697f0ec720ebed7d863a (patch) | |
tree | ce0225a77a803cf1740bdd2c3d260d572ed55b90 /common | |
parent | f802bb236a60dcc6c64d53edac634891272e0c07 (diff) |
para: Skip para test when not on CI
Fixes #6963
Diffstat (limited to 'common')
-rw-r--r-- | common/para/para_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/para/para_test.go b/common/para/para_test.go index 627528cf9..646b7b36b 100644 --- a/common/para/para_test.go +++ b/common/para/para_test.go @@ -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) { |