safesocket: refactor macOS auth code, pull out separate LocalTCPPortAndToken

This commit is contained in:
Brad Fitzpatrick
2021-01-29 14:32:56 -08:00
parent 60e189f699
commit 914a486af6
5 changed files with 96 additions and 31 deletions

View File

@ -32,7 +32,7 @@ func TestBasics(t *testing.T) {
errs <- err
return
}
fmt.Printf("server read %d bytes.\n", n)
t.Logf("server read %d bytes.", n)
if string(b[:n]) != "world" {
errs <- fmt.Errorf("got %#v, expected %#v\n", string(b[:n]), "world")
return