test: check scanner error in openSSEStream
This commit is contained in:
1 parent
25668c1226
commit
b9c1663d64
1 file changed
+3
@@ -163,6 +163,9 @@ func openSSEStream(t *testing.T, ctx context.Context, ts *httptest.Server) <-cha
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if err := scanner.Err(); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
return lines
|
return lines
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user