common/para: Skip flaky tests on Windows

This commit is contained in:
Bjørn Erik Pedersen 2023-11-16 18:24:20 +01:00
parent 80d2fdbaa0
commit 27620daa20
No known key found for this signature in database

View file

@ -28,6 +28,9 @@ 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())
} }