]> Cypherpunks.ru repositories - gostls13.git/commit
runtime/trace: fix TestTraceSymbolize networking
authorRuss Cox <rsc@golang.org>
Tue, 21 Jul 2015 00:20:05 +0000 (20:20 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 23 Jul 2015 05:37:15 +0000 (05:37 +0000)
commit7334cb3a6fe75ab8343d397041dd94ec935b942b
tree7454091f42633db006064f44b092181e368331f4
parent5659964d67c9e0b74d8335ea7288fe6facb0d00b
runtime/trace: fix TestTraceSymbolize networking

We use 127.0.0.1 instead of localhost in Go networking tests.
The reporter of #11774 has localhost defined to be 120.192.83.162,
for reasons unknown.

Also, if TestTraceSymbolize calls Fatalf (for example because Listen
fails) then we need to stop the trace for future tests to work.
See failure log in #11774.

Fixes #11774.

Change-Id: Iceddb03a72d31e967acd2d559ecb78051f9c14b7
Reviewed-on: https://go-review.googlesource.com/12521
Reviewed-by: Rob Pike <r@golang.org>
src/runtime/trace/trace_stack_test.go