mirror of https://github.com/golang/go.git
added comment on test for clarity
This commit is contained in:
parent
d23e90da0d
commit
40a763c3d1
|
|
@ -50,6 +50,8 @@ func TestUnixAutobindClose(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestUnixAbstractLongNameNullStart(t *testing.T) {
|
||||
// Create an abstract socket name that starts with a null byte ("\x00")
|
||||
// whose length is the maximum of RawSockaddrUnix Path len
|
||||
paddedAddr := make([]byte, len(syscall.RawSockaddrUnix{}.Path))
|
||||
copy(paddedAddr, "\x00abstract_test")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue