zettio/weave#362 - new constructor for creating a DNS server with a given config
fix unit tests by using the new constructor
This commit is contained in:
1 parent
3be5600383
commit
c1f9c8bc10
2 files changed
+15
-8
No files matched your search
@@ -41,7 +41,9 @@ func TestDNSServer(t *testing.T) {
|
||||
wt.AssertNoErr(t, err)
|
||||
|
||||
config := &dns.ClientConfig{Servers: []string{"127.0.0.1"}, Port: fallbackPort}
|
||||
go startServerWithConfig(config, zone, nil, port, 0)
|
||||
srv, err := NewDNSServerWithConfig(config, zone, nil, port, port)
|
||||
wt.AssertNoErr(t, err)
|
||||
go srv.Start()
|
||||
time.Sleep(100 * time.Millisecond) // Allow sever goroutine to start
|
||||
|
||||
c := new(dns.Client)
|
||||
|
||||
Reference in new issue
Block a user