Don't overwrite recvChan; it just creates a race condition

This commit is contained in:
Bryan Boreham committed 2015-06-17 11:35:01 +01:00
1 parent 1f92ae6ba8
commit e68364cb3b
1 file changed
-1
-1
View File
@@ -60,7 +60,6 @@ func TestServerSimpleQuery(t *testing.T) {
receivedAddrs = make([]net.IP, 0) receivedAddrs = make([]net.IP, 0)
receivedName = "" receivedName = ""
receivedCount = 0 receivedCount = 0
recvChan = make(chan interface{})
m := new(dns.Msg) m := new(dns.Msg)
m.SetQuestion(name, querytype) m.SetQuestion(name, querytype)