summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/server4
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2019-05-08 13:51:39 +0100
committerinsomniac <insomniacslk@users.noreply.github.com>2019-05-08 20:08:19 +0100
commit5dea7039d65e5b94fa681b17bc4a3bf63aa47994 (patch)
tree5726ea67a6a46cef01edc18efc2ab886cb53b724 /dhcpv4/server4
parent7f47189c0d8f5c8b06ab1787a94506fbb673e6e0 (diff)
[CI] Added linters
Now the CI will also run golangci-lint Signed-off-by: Andrea Barberio <insomniac@slackware.it>
Diffstat (limited to 'dhcpv4/server4')
-rw-r--r--dhcpv4/server4/server_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcpv4/server4/server_test.go b/dhcpv4/server4/server_test.go
index cd46774..d24d49b 100644
--- a/dhcpv4/server4/server_test.go
+++ b/dhcpv4/server4/server_test.go
@@ -77,7 +77,9 @@ func setUpClientAndServer(t *testing.T, iface net.Interface, handler Handler) (*
if err != nil {
t.Fatal(err)
}
- go s.Serve()
+ go func() {
+ _ = s.Serve()
+ }()
clientConn, err := nclient4.NewIPv4UDPConn("", caddr.Port)
if err != nil {