Skip to content

Commit 906ac8f

Browse files
committed
test: really don't panic
1 parent a45a47a commit 906ac8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func TestNotFound(t *testing.T) {
267267

268268
resp.CloserPeers = pb.PeerInfosToPBPeers(d.host.Network(), ps)
269269
if err := pbw.WriteMsg(resp); err != nil {
270-
panic(err)
270+
return
271271
}
272272
default:
273273
panic("Shouldnt recieve this.")

0 commit comments

Comments
 (0)