(t *testing.T)
| 116 | } |
| 117 | |
| 118 | func TestCommandOn(t *testing.T) { |
| 119 | ctx := log.Testing(t) |
| 120 | _, err := shell.Command("echo", "echo to stdout").On(errorTarget{}).Call(ctx) |
| 121 | assert.For(ctx, "err").ThatError(err).HasMessage(`Failed to start process |
| 122 | Cause: AlwaysFail`) |
| 123 | } |