test(web): avoid accept error shadowing
This commit is contained in:
parent
136187fc6b
commit
30f3238d3a
1 changed files with 2 additions and 2 deletions
|
|
@ -675,8 +675,8 @@ func TestNewSafeDialContext_AllowsWhitelistedPrivateDNSResolution(t *testing.T)
|
|||
|
||||
accepted := make(chan struct{}, 1)
|
||||
go func() {
|
||||
conn, err := listener.Accept()
|
||||
if err != nil {
|
||||
conn, acceptErr := listener.Accept()
|
||||
if acceptErr != nil {
|
||||
return
|
||||
}
|
||||
conn.Close()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue