added comment on test for clarity

This commit is contained in:
Albert Sundjaja 2025-02-08 17:57:09 +11:00
parent d23e90da0d
commit 40a763c3d1
1 changed files with 2 additions and 0 deletions

View File

@ -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")