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

@ -41,7 +41,7 @@ import (
)
func TestHugoModulesVariants(t *testing.T) {
if !isCI() {
if !htesting.IsCI() {
t.Skip("skip (relative) long running modules test when running locally")
}
@ -285,12 +285,12 @@ JS imported in module: |
// TODO(bep) this fails when testmodBuilder is also building ...
func TestHugoModulesMatrix(t *testing.T) {
if !isCI() {
if !htesting.IsCI() {
t.Skip("skip (relative) long running modules test when running locally")
}
t.Parallel()
if !isCI() || hugo.GoMinorVersion() < 12 {
if !htesting.IsCI() || hugo.GoMinorVersion() < 12 {
// https://github.com/golang/go/issues/26794
// There were some concurrent issues with Go modules in < Go 12.
t.Skip("skip this on local host and for Go <= 1.11 due to a bug in Go's stdlib")