diff --git a/integration/plugin/logging/main_test.go b/integration/plugin/logging/main_test.go index f85b0834cf5dca95eda58e04fc86c1d67546a408..40a41b9b2c0b03555011ad05beb039e368382288 100644 --- a/integration/plugin/logging/main_test.go +++ b/integration/plugin/logging/main_test.go @@ -19,9 +19,6 @@ func TestMain(m *testing.M) { fmt.Println(err) os.Exit(1) } - if testEnv.OSType != "linux" { - os.Exit(0) - } err = environment.EnsureFrozenImagesLinux(testEnv) if err != nil { fmt.Println(err) diff --git a/integration/plugin/logging/read_test.go b/integration/plugin/logging/read_test.go index cd57a5d86497a0732610dea9f84851df650454e6..855e67186672c5b2ba550b7b8fdce66f76b384a4 100644 --- a/integration/plugin/logging/read_test.go +++ b/integration/plugin/logging/read_test.go @@ -2,13 +2,11 @@ package logging import ( "bytes" - "testing" - "context" - - "time" - + "runtime" "strings" + "testing" + "time" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/container" @@ -19,6 +17,9 @@ import ( // TestReadPluginNoRead tests that reads are supported even if the plugin isn't capable. func TestReadPluginNoRead(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("no unix domain sockets on Windows") + } t.Parallel() d := daemon.New(t) d.StartWithBusybox(t, "--iptables=false")