Rename 'server' to 'listener' to better match how it is used
This commit is contained in:
1 parent
22c3ff9f60
commit
5cc24fe55e
2 files changed
+9
-7
No files matched your search
@@ -61,9 +61,9 @@ func TestServerSimpleQuery(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
server := &dns.Server{Unsafe: true, PacketConn: multicast, Handler: dns.HandlerFunc(handleMDNS)}
|
||||
go server.ActivateAndServe()
|
||||
defer server.Shutdown()
|
||||
listener := &dns.Server{Unsafe: true, PacketConn: multicast, Handler: dns.HandlerFunc(handleMDNS)}
|
||||
go listener.ActivateAndServe()
|
||||
defer listener.Shutdown()
|
||||
|
||||
time.Sleep(100 * time.Millisecond) // Allow for server to get going
|
||||
|
||||
|
||||
Reference in new issue
Block a user