mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: experimental prefork tests should skip non Linux OSs (#904)
This commit is contained in:
@@ -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{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user