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:
parent
5852760088
commit
cdd3598334
@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user