Skip to content

Commit

Permalink
[net][linux]: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shirou committed May 21, 2022
1 parent a753910 commit 0074fab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/net_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@ func TestGetProcInodesAll(t *testing.T) {
go func() { // TCP listening goroutine to have some opened inodes even in CI
addr, err := net.ResolveTCPAddr("tcp", "localhost:0") // dynamically get a random open port from OS
if err != nil {
t.Skip("unable to resolve localhost:", err)
t.Skipf("unable to resolve localhost: %v", err)
}
l, err := net.ListenTCP(addr.Network(), addr)
if err != nil {
t.Skip(fmt.Sprintf("unable to listen on %v: %v", addr, err))
t.Skipf("unable to listen on %v: %v", addr, err)
}
defer l.Close()
waitForServer <- true
for {
conn, err := l.Accept()
if err != nil {
t.Skip("unable to accept connection:", err)
t.Skipf("unable to accept connection: %v", err)
}
defer conn.Close()
}
Expand Down

0 comments on commit 0074fab

Please sign in to comment.