Skip to content

Commit

Permalink
Merge pull request #1305 from shirou/feature/fix_lint_net_linux_test
Browse files Browse the repository at this point in the history
[net][linux]: fix lint
  • Loading branch information
shirou committed May 21, 2022
2 parents a753910 + 0074fab commit c4a0f46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/net_linux_test.go
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 c4a0f46

Please sign in to comment.