Don't overwrite recvChan; it just creates a race condition
This commit is contained in:
1 parent
1f92ae6ba8
commit
e68364cb3b
1 file changed
-1
@@ -60,7 +60,6 @@ func TestServerSimpleQuery(t *testing.T) {
|
||||
receivedAddrs = make([]net.IP, 0)
|
||||
receivedName = ""
|
||||
receivedCount = 0
|
||||
recvChan = make(chan interface{})
|
||||
|
||||
m := new(dns.Msg)
|
||||
m.SetQuestion(name, querytype)
|
||||
|
||||
Reference in new issue
Block a user