mirror of
https://github.com/golang/go
synced 2024-11-12 07:40:23 -07:00
net/http: deflake test
Update #5005. R=golang-dev, fullung, bradfitz CC=golang-dev https://golang.org/cl/7651045
This commit is contained in:
parent
b4237b5997
commit
e0fd6d08b2
@ -697,7 +697,7 @@ func TestLinuxSendfile(t *testing.T) {
|
||||
defer ln.Close()
|
||||
|
||||
var buf bytes.Buffer
|
||||
child := exec.Command("strace", "-f", os.Args[0], "-test.run=TestLinuxSendfileChild")
|
||||
child := exec.Command("strace", "-f", "-q", "-e", "trace=sendfile,sendfile64", os.Args[0], "-test.run=TestLinuxSendfileChild")
|
||||
child.ExtraFiles = append(child.ExtraFiles, lnf)
|
||||
child.Env = append([]string{"GO_WANT_HELPER_PROCESS=1"}, os.Environ()...)
|
||||
child.Stdout = &buf
|
||||
|
Loading…
Reference in New Issue
Block a user