"...Irrlicht/svn:/svn.code.sf.net/p/irrlicht/code/trunk@754" did not exist on "40abacae7d330fe2efcc8d6c6416dea2dce170fb"
Commit 1ae8a9e3 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

Add upstream unit test (#1830)

Fix the upstream unit test to actually test it.
parent 003e104f
...@@ -28,9 +28,8 @@ www 3600 IN CNAME www.example.net. ...@@ -28,9 +28,8 @@ www 3600 IN CNAME www.example.net.
} }
defer rm() defer rm()
// Corefile with for example without proxy section. corefile := `.:0 {
corefile := `example.org:0 { file ` + name + ` example.org {
file ` + name + ` {
upstream upstream
} }
hosts { hosts {
...@@ -56,5 +55,7 @@ www 3600 IN CNAME www.example.net. ...@@ -56,5 +55,7 @@ www 3600 IN CNAME www.example.net.
if r.Rcode == dns.RcodeServerFailure { if r.Rcode == dns.RcodeServerFailure {
t.Fatalf("Rcode should not be dns.RcodeServerFailure") t.Fatalf("Rcode should not be dns.RcodeServerFailure")
} }
t.Logf("%s", r) if x := r.Answer[1].(*dns.A).A.String(); x != "10.0.0.1" {
t.Errorf("Failed to get address for CNAME, expected 10.0.0.1 got %s", x)
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment