Skip to content

Commit 4c86378

Browse files
committed
test: fix panic in TestNotFound
1 parent 4a78fc6 commit 4c86378

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ func TestNotFound(t *testing.T) {
247247

248248
pmes := new(pb.Message)
249249
if err := pbr.ReadMsg(pmes); err != nil {
250-
panic(err)
250+
// this isn't an error, it just means the stream has died.
251+
return
251252
}
252253

253254
switch pmes.GetType() {

0 commit comments

Comments
 (0)