net: do not try to remove the LocalAddr of a unix socket
net: do not try to remove the LocalAddr of a unix socket

TestUnixAndUnixpacketServer deferred a call to os.Remove on the local
address of a dialed unix domain socket, in an attempt to remove the
socket from the server. However, that call appears to be neither
necessary nor correct.

In this test, the file that needs to be unlinked is the one attached
to the listener — but the listener's Close method already does that
(see the Unlink call in  (*UnixListener).close), so there is no need
for the test itself to do the same.

Moreover, the local address is not something that is sensible to
delete — on Linux, it is empirically always the literal string "@" —
and the Addr returned by c.LocalAddr is not reliably non-nil on all
platforms (see #34611).

Since we don't need to do anything with the local address, we shouldn't.
At best, this is a benign Remove of a file that doesn't exist anyway;
at worst, it is a nil-panic.

Fixes #34611

Change-Id: Ie072b3388d884d60e819d1df210fa7d3e2eed124
Reviewed-on: https://go-review.googlesource.com/c/go/+/370695
Trust: Bryan Mills <1c8aad60184261ccede67f5c63a0d2a3bf3c9ff4@google.com>
Run-TryBot: Bryan Mills <1c8aad60184261ccede67f5c63a0d2a3bf3c9ff4@google.com>
TryBot-Result: Gopher Robot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>

CAFxX/go,golang/go,cloudflare/go,golang/go,golang/go,cloudflare/go,nawawi/go,nawawi/go,nawawi/go,cloudflare/go,nawawi/go,golang/go,cloudflare/go,nawawi/go,cloudflare/go,golang/go,cloudflare/go,golang/go,CAFxX/go,CAFxX/go,CAFxX/go,CAFxX/go,nawawi/go,CAFxX/go,CAFxX/go,cloudflare/go,golang/go,CAFxX/go,nawawi/go,cloudflare/go,golang/go,nawawi/go