diff options
Diffstat (limited to 'dhcpv6/server6/server_test.go')
-rw-r--r-- | dhcpv6/server6/server_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcpv6/server6/server_test.go b/dhcpv6/server6/server_test.go index c81525a..cf5fbea 100644 --- a/dhcpv6/server6/server_test.go +++ b/dhcpv6/server6/server_test.go @@ -37,7 +37,9 @@ func setUpClientAndServer(handler Handler) (*nclient6.Client, *Server) { if err != nil { panic(err) } - go s.Serve() + go func() { + _ = s.Serve() + }() clientConn, err := net.DialUDP("udp6", &net.UDPAddr{IP: net.ParseIP("::1")}, s.conn.LocalAddr().(*net.UDPAddr)) if err != nil { |