Fix test compilation

Tests weren't compiling due to change of ListenHttp() signature. Fixed
for now by reintroducing domain parameter in addition to server, as this
allows the HTTP tests to pass in a nil server parameter. In the long
term DNSServer should probably become an interface so we can mock it
easily in such a scenario.
This commit is contained in:
Adam Harrison committed 2015-03-17 17:42:16 +00:00
1 parent c36543a247
commit 0f492b563e
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ func main() {
if err != nil {
Error.Fatal("Failed to initialize the WeaveDNS server", err)
}
go weavedns.ListenHttp(version, srv, zone, httpPort)
go weavedns.ListenHttp(version, srv, localDomain, zone, httpPort)
err = srv.Start()
if err != nil {
Error.Fatal("Failed to start the WeaveDNS server", err)