diff options
author | 2016-03-19 14:46:32 +0000 | |
---|---|---|
committer | 2016-03-19 14:46:32 +0000 | |
commit | d933bb26668583bf49d9ae87752fdb139a57e21c (patch) | |
tree | 19dbc41bab6d4d7d7e8da2d361f27085febe3b13 /core/config_test.go | |
parent | 01d5804c1339a62112cb27d5f2238acb7154a734 (diff) | |
download | coredns-d933bb26668583bf49d9ae87752fdb139a57e21c.tar.gz coredns-d933bb26668583bf49d9ae87752fdb139a57e21c.tar.zst coredns-d933bb26668583bf49d9ae87752fdb139a57e21c.zip |
Make whole heap of tests better
Diffstat (limited to 'core/config_test.go')
-rw-r--r-- | core/config_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/config_test.go b/core/config_test.go index 512128c0b..c28dd4fcf 100644 --- a/core/config_test.go +++ b/core/config_test.go @@ -9,24 +9,24 @@ import ( ) func TestDefaultInput(t *testing.T) { - if actual, expected := string(DefaultInput().Body()), ":2015\nroot ."; actual != expected { + if actual, expected := string(DefaultInput().Body()), ":53\nroot ."; actual != expected { t.Errorf("Host=%s; Port=%s; Root=%s;\nEXPECTED: '%s'\n ACTUAL: '%s'", Host, Port, Root, expected, actual) } // next few tests simulate user providing -host and/or -port flags Host = "not-localhost.com" - if actual, expected := string(DefaultInput().Body()), "not-localhost.com:443\nroot ."; actual != expected { + if actual, expected := string(DefaultInput().Body()), "not-localhost.com:53\nroot ."; actual != expected { t.Errorf("Host=%s; Port=%s; Root=%s;\nEXPECTED: '%s'\n ACTUAL: '%s'", Host, Port, Root, expected, actual) } Host = "[::1]" - if actual, expected := string(DefaultInput().Body()), "[::1]:2015\nroot ."; actual != expected { + if actual, expected := string(DefaultInput().Body()), "[::1]:53\nroot ."; actual != expected { t.Errorf("Host=%s; Port=%s; Root=%s;\nEXPECTED: '%s'\n ACTUAL: '%s'", Host, Port, Root, expected, actual) } Host = "127.0.1.1" - if actual, expected := string(DefaultInput().Body()), "127.0.1.1:2015\nroot ."; actual != expected { + if actual, expected := string(DefaultInput().Body()), "127.0.1.1:53\nroot ."; actual != expected { t.Errorf("Host=%s; Port=%s; Root=%s;\nEXPECTED: '%s'\n ACTUAL: '%s'", Host, Port, Root, expected, actual) } |