test: check scanner error in openSSEStream

This commit is contained in:
sam committed 2026-09-24 22:27:56 +10:00
1 parent 25668c1226
commit b9c1663d64
1 file changed
+3
+3
View File
@@ -163,6 +163,9 @@ func openSSEStream(t *testing.T, ctx context.Context, ts *httptest.Server) <-cha
return
}
}
if err := scanner.Err(); err != nil {
return
}
}()
return lines
}