FAQ
https://codereview.appspot.com/7058062/diff/21001/src/pkg/net/unix_test.go
File src/pkg/net/unix_test.go (right):

https://codereview.appspot.com/7058062/diff/21001/src/pkg/net/unix_test.go#newcode18
src/pkg/net/unix_test.go:18: // use ioutil.TempFile to get a name that
is unique
// testUnixAddr returns a unique pathname that ... blah blah.

https://codereview.appspot.com/7058062/diff/21001/src/pkg/net/unix_test.go#newcode19
src/pkg/net/unix_test.go:19: func genAddr() string {
maybe testUnixAddr

https://codereview.appspot.com/7058062/diff/21001/src/pkg/net/unix_test.go#newcode24
src/pkg/net/unix_test.go:24: f.Close()
seems wrong f.Close then f.Name

https://codereview.appspot.com/7058062/diff/21001/src/pkg/net/unix_test.go#newcode44
src/pkg/net/unix_test.go:44:
sorry, i forgot to add a channel that avoids ECONNRESET (which rarely
happens) on BSDs.

off := make(chan bool)
data := ...
go func() {
defer func() { off<-true }()
:
}()

<-off
c.SetReadDeadline()

https://codereview.appspot.com/7058062/diff/21001/src/pkg/net/unix_test.go#newcode81
src/pkg/net/unix_test.go:81: defer os.Remove(addr)
delete

https://codereview.appspot.com/7058062/diff/21001/src/pkg/net/unix_test.go#newcode95
src/pkg/net/unix_test.go:95: go func() {
sorry, pls add a channel (same as above)

https://codereview.appspot.com/7058062/

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedJan 19, '13 at 2:10p
activeJan 19, '13 at 2:10p
posts1
users1
websitegolang.org

1 user in discussion

Mikioh Mikioh: 1 post

People

Translate

site design / logo © 2022 Grokbase