mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
common/para: Skip flaky test on CI
This commit is contained in:
parent
4fb40ee873
commit
e2a624dd6c
1 changed files with 3 additions and 5 deletions
|
@ -28,15 +28,13 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPara(t *testing.T) {
|
func TestPara(t *testing.T) {
|
||||||
if runtime.GOOS == "windows" {
|
|
||||||
t.Skip("skip para test on Windows")
|
|
||||||
}
|
|
||||||
if runtime.NumCPU() < 4 {
|
if runtime.NumCPU() < 4 {
|
||||||
t.Skipf("skip para test, CPU count is %d", runtime.NumCPU())
|
t.Skipf("skip para test, CPU count is %d", runtime.NumCPU())
|
||||||
}
|
}
|
||||||
|
|
||||||
if !htesting.IsCI() {
|
// TODO(bep)
|
||||||
t.Skip("skip para test when not running on CI")
|
if htesting.IsCI() {
|
||||||
|
t.Skip("skip para test when running on CI")
|
||||||
}
|
}
|
||||||
|
|
||||||
c := qt.New(t)
|
c := qt.New(t)
|
||||||
|
|
Loading…
Reference in a new issue