diff options
author | 2016-08-20 23:03:36 +0100 | |
---|---|---|
committer | 2016-08-20 23:03:36 +0100 | |
commit | 416603383dfe0f57ef480e4bf480bbab1bf780a9 (patch) | |
tree | c03871ed17a439df91d32b1cdc999fed0a15f434 /server/config_test.go | |
parent | 9ac3cab1b7b1b1e78f86ce3c6a80fbee312162e6 (diff) | |
download | coredns-416603383dfe0f57ef480e4bf480bbab1bf780a9.tar.gz coredns-416603383dfe0f57ef480e4bf480bbab1bf780a9.tar.zst coredns-416603383dfe0f57ef480e4bf480bbab1bf780a9.zip |
Cleanup and fixes (#223)
* Set version to 001
* Remove k8stest, test fails is k8s is not there: touch luck
* Remove server directory: not used anymore
* Disable k8s test (for now)
* gometalinter changes
Diffstat (limited to 'server/config_test.go')
-rw-r--r-- | server/config_test.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/server/config_test.go b/server/config_test.go deleted file mode 100644 index 8787e467b..000000000 --- a/server/config_test.go +++ /dev/null @@ -1,25 +0,0 @@ -package server - -import "testing" - -func TestConfigAddress(t *testing.T) { - cfg := Config{Host: "foobar", Port: "1234"} - if actual, expected := cfg.Address(), "foobar:1234"; expected != actual { - t.Errorf("Expected '%s' but got '%s'", expected, actual) - } - - cfg = Config{Host: "", Port: "1234"} - if actual, expected := cfg.Address(), ":1234"; expected != actual { - t.Errorf("Expected '%s' but got '%s'", expected, actual) - } - - cfg = Config{Host: "foobar", Port: ""} - if actual, expected := cfg.Address(), "foobar:"; expected != actual { - t.Errorf("Expected '%s' but got '%s'", expected, actual) - } - - cfg = Config{Host: "::1", Port: "443"} - if actual, expected := cfg.Address(), "[::1]:443"; expected != actual { - t.Errorf("Expected '%s' but got '%s'", expected, actual) - } -} |