(t *testing.T, w *io.PipeWriter)
| 31 | } |
| 32 | |
| 33 | func (ix interaction) run(t *testing.T, w *io.PipeWriter) { |
| 34 | t.Helper() |
| 35 | for _, s := range ix.steps { |
| 36 | time.Sleep(s.delay) |
| 37 | _, err := w.Write(s.bytes) |
| 38 | require.NoError(t, err) |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // Step helpers — each returns a single interactionStep. |
| 43 | // |