chore(pty/ptytest): log scanner errors during shutdown (#25485)

This commit is contained in:
Mathias Fredriksson
2026-05-19 16:26:01 +03:00
committed by GitHub
parent 0e36c78cc6
commit a5d5f5b797
+4
View File
@@ -132,6 +132,10 @@ func newExpecter(t *testing.T, r io.Reader, name string) outExpecter {
for s.Scan() {
ex.logf("%q", stripansi.Strip(s.Text()))
}
// Surface non-EOF scanner errors; otherwise they're invisible.
if err := s.Err(); err != nil {
ex.logf("log scanner stopped: %v", err)
}
}()
return ex