diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-20 10:59:20 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-20 10:59:20 -0600 |
commit | fec7fa8bfda713e8042b9bbf9a480c7792b78c41 (patch) | |
tree | 53d86ab50ef7d15e9688c81b6618024c4243c98d /modules/caddyhttp/caddyhttp_test.go | |
parent | 1a20fe330ecc39e8b98b5669b836f3b1b185f622 (diff) |
Implement most of static file server; refactor and improve Replacer
Diffstat (limited to 'modules/caddyhttp/caddyhttp_test.go')
-rw-r--r-- | modules/caddyhttp/caddyhttp_test.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/modules/caddyhttp/caddyhttp_test.go b/modules/caddyhttp/caddyhttp_test.go index dee3977..8d25332 100644 --- a/modules/caddyhttp/caddyhttp_test.go +++ b/modules/caddyhttp/caddyhttp_test.go @@ -1,7 +1,6 @@ package caddyhttp import ( - "os" "reflect" "testing" ) @@ -115,11 +114,6 @@ func TestJoinListenerAddr(t *testing.T) { } func TestParseListenerAddr(t *testing.T) { - hostname, err := os.Hostname() - if err != nil { - t.Fatalf("Cannot ascertain system hostname: %v", err) - } - for i, tc := range []struct { input string expectNetwork string @@ -176,11 +170,6 @@ func TestParseListenerAddr(t *testing.T) { expectNetwork: "tcp", expectAddrs: []string{"localhost:0"}, }, - { - input: "{system.hostname}:0", - expectNetwork: "tcp", - expectAddrs: []string{hostname + ":0"}, - }, } { actualNetwork, actualAddrs, err := parseListenAddr(tc.input) if tc.expectErr && err == nil { |