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)
|
accepted := make(chan struct{}, 1)
|
||||||
go func() {
|
go func() {
|
||||||
conn, err := listener.Accept()
|
conn, acceptErr := listener.Accept()
|
||||||
if err != nil {
|
if acceptErr != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
conn.Close()
|
conn.Close()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue