(t *testing.T)
| 209 | } |
| 210 | |
| 211 | func TestPipelineExit(t *testing.T) { |
| 212 | t.Parallel() |
| 213 | ctx := context.Background() |
| 214 | |
| 215 | p := pipe.New() |
| 216 | p.Add( |
| 217 | pipe.Command("false"), |
| 218 | pipe.Command("true"), |
| 219 | ) |
| 220 | assert.EqualError(t, p.Run(ctx), "false: exit status 1") |
| 221 | } |
| 222 | |
| 223 | func TestPipelineStderr(t *testing.T) { |
| 224 | t.Parallel() |