mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Removed tests that are not cross-platform compatible
This commit is contained in:
parent
d8391d6fbd
commit
47d1f5eecf
1 changed files with 3 additions and 2 deletions
|
@ -12,6 +12,9 @@ func TestReolveAddr(t *testing.T) {
|
||||||
// If that happens, maybe we should use actualAddr.IP.IsLoopback()
|
// If that happens, maybe we should use actualAddr.IP.IsLoopback()
|
||||||
// for the assertion, rather than a direct string comparison.
|
// for the assertion, rather than a direct string comparison.
|
||||||
|
|
||||||
|
// NOTE: Tests with {Host: "", Port: ""} and {Host: "localhost", Port: ""}
|
||||||
|
// will not behave the same cross-platform, so they have bene omitted.
|
||||||
|
|
||||||
for i, test := range []struct {
|
for i, test := range []struct {
|
||||||
config server.Config
|
config server.Config
|
||||||
shouldWarnErr bool
|
shouldWarnErr bool
|
||||||
|
@ -24,8 +27,6 @@ func TestReolveAddr(t *testing.T) {
|
||||||
{server.Config{Host: "should-not-resolve", Port: "1234"}, true, false, "0.0.0.0", 1234},
|
{server.Config{Host: "should-not-resolve", Port: "1234"}, true, false, "0.0.0.0", 1234},
|
||||||
{server.Config{Host: "localhost", Port: "http"}, false, false, "127.0.0.1", 80},
|
{server.Config{Host: "localhost", Port: "http"}, false, false, "127.0.0.1", 80},
|
||||||
{server.Config{Host: "localhost", Port: "https"}, false, false, "127.0.0.1", 443},
|
{server.Config{Host: "localhost", Port: "https"}, false, false, "127.0.0.1", 443},
|
||||||
{server.Config{Host: "", Port: ""}, false, true, "", 0},
|
|
||||||
{server.Config{Host: "localhost", Port: ""}, false, true, "127.0.0.1", 0},
|
|
||||||
{server.Config{Host: "", Port: "1234"}, false, false, "<nil>", 1234},
|
{server.Config{Host: "", Port: "1234"}, false, false, "<nil>", 1234},
|
||||||
{server.Config{Host: "localhost", Port: "abcd"}, false, true, "", 0},
|
{server.Config{Host: "localhost", Port: "abcd"}, false, true, "", 0},
|
||||||
{server.Config{BindHost: "127.0.0.1", Host: "should-not-be-used", Port: "1234"}, false, false, "127.0.0.1", 1234},
|
{server.Config{BindHost: "127.0.0.1", Host: "should-not-be-used", Port: "1234"}, false, false, "127.0.0.1", 1234},
|
||||||
|
|
Loading…
Reference in a new issue