diff options
author | Brian Goff <cpuguy83@gmail.com> | 2021-04-27 22:40:39 +0000 |
---|---|---|
committer | Brian Goff <cpuguy83@gmail.com> | 2021-06-01 22:14:41 +0000 |
commit | 72c4a7b4969acbe5f8fd8dafbeb4481d9d856586 (patch) | |
tree | b38c4e1a05e3b3733091e748e130f8e93ad4f98c /libnetwork/cmd | |
parent | 4da0dc974c4d4821c43c80560a8fd37a29a83274 (diff) | |
download | docker-72c4a7b4969acbe5f8fd8dafbeb4481d9d856586.tar.gz |
Fix issues running libnetwork tests.
libnetwork does different stuff depending on if you are running the
tests in a container or not... without telling it we are in a container
a bunch of the tests actually fail.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Diffstat (limited to 'libnetwork/cmd')
-rw-r--r-- | libnetwork/cmd/proxy/network_proxy_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libnetwork/cmd/proxy/network_proxy_test.go b/libnetwork/cmd/proxy/network_proxy_test.go index 9d70216b01..ec2ab77ccd 100644 --- a/libnetwork/cmd/proxy/network_proxy_test.go +++ b/libnetwork/cmd/proxy/network_proxy_test.go @@ -6,11 +6,14 @@ import ( "io" "io/ioutil" "net" + "runtime" "strings" "testing" "time" "github.com/ishidawataru/sctp" + "gotest.tools/v3/skip" + // this takes care of the incontainer flag _ "github.com/docker/docker/libnetwork/testutils" ) @@ -282,6 +285,8 @@ func TestUDPWriteError(t *testing.T) { } func TestSCTP4Proxy(t *testing.T) { + skip.If(t, runtime.GOOS == "windows", "sctp is not supported on windows") + backend := NewEchoServer(t, "sctp", "127.0.0.1:0", EchoServerOptions{}) defer backend.Close() backend.Run() @@ -295,6 +300,8 @@ func TestSCTP4Proxy(t *testing.T) { func TestSCTP6Proxy(t *testing.T) { t.Skip("Need to start CI docker with --ipv6") + skip.If(t, runtime.GOOS == "windows", "sctp is not supported on windows") + backend := NewEchoServer(t, "sctp", "[::1]:0", EchoServerOptions{}) defer backend.Close() backend.Run() |