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
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
9 changed files with 21 additions and 13 deletions

View file

@ -8,6 +8,7 @@ import (
"time"
"github.com/fortytw2/leaktest"
"github.com/gohugoio/hugo/htesting"
qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/common/herrors"
@ -316,7 +317,7 @@ Some content.
// https://github.com/gohugoio/hugo/issues/5375
func TestSiteBuildTimeout(t *testing.T) {
if !isCI() {
if !htesting.IsCI() {
defer leaktest.CheckTimeout(t, 10*time.Second)()
}