fn: experimental prefork tests should skip non Linux OSs (#904)

This commit is contained in:
Tolga Ceylan
2018-03-28 14:40:51 -07:00
committed by GitHub
parent b7e7fb2460
commit 369f2ea17c

View File

@@ -1,6 +1,7 @@
package docker
import (
"runtime"
"testing"
"time"
@@ -8,6 +9,10 @@ import (
)
func TestRunnerDockerPool(t *testing.T) {
if runtime.GOOS != "linux" {
t.Skip("prefork only supported on Linux")
return
}
cfg := &drivers.Config{}
@@ -85,6 +90,10 @@ func TestRunnerDockerPool(t *testing.T) {
}
func TestRunnerDockerPoolFaulty(t *testing.T) {
if runtime.GOOS != "linux" {
t.Skip("prefork only supported on Linux")
return
}
cfg := &drivers.Config{}