1
0
mirror of https://github.com/golang/go synced 2024-11-22 03:44:39 -07:00

net: give more detail when test panics

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/11811043
This commit is contained in:
Mikio Hara 2013-07-26 00:21:37 +09:00
parent 5852760088
commit cdd3598334
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ var (
func TestParseProcNet(t *testing.T) {
defer func() {
if p := recover(); p != nil {
t.Fatalf("panicked")
t.Fatalf("parseProcNetIGMP or parseProtNetIGMP6 panicked: %v", p)
}
}()

View File

@ -436,8 +436,8 @@ func TestWildWildcardListener(t *testing.T) {
}
defer func() {
if recover() != nil {
t.Fatalf("panicked")
if p := recover(); p != nil {
t.Fatalf("Listen, ListenPacket or protocol-specific Listen panicked: %v", p)
}
}()