zettio/weave#366 - move more initialization code to the constructor
This commit is contained in:
1 parent
bbd69170f9
commit
403520f4b6
2 files changed
+31
-12
No files matched your search
@@ -73,7 +73,7 @@ func TestUDPDNSServer(t *testing.T) {
|
||||
time.Sleep(100 * time.Millisecond) // Allow sever goroutine to start
|
||||
|
||||
c := new(dns.Client)
|
||||
c.UDPSize = UDPBufSize
|
||||
c.UDPSize = DEFAULT_UDP_BUFLEN
|
||||
m := new(dns.Msg)
|
||||
m.SetQuestion(successTestName, dns.TypeA)
|
||||
m.RecursionDesired = true
|
||||
@@ -198,7 +198,7 @@ func TestTCPDNSServer(t *testing.T) {
|
||||
|
||||
t.Logf("Creating a UDP and a TCP client")
|
||||
uc := new(dns.Client)
|
||||
uc.UDPSize = UDPBufSize
|
||||
uc.UDPSize = DEFAULT_UDP_BUFLEN
|
||||
tc := new(dns.Client)
|
||||
tc.Net = "tcp"
|
||||
|
||||
|
||||
Reference in new issue
Block a user