diff --git a/integration/plugin/logging/main_test.go b/integration/plugin/logging/main_test.go index f85b0834cf..40a41b9b2c 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 cd57a5d864..855e671866 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")