(t *testing.T)
| 118 | } |
| 119 | } |
| 120 | |
| 121 | func TestBashTimeout(t *testing.T) { |
| 122 | out := Bash(context.Background(), "sleep 2", 100*time.Millisecond) |
| 123 | if !strings.Contains(out, "timeout") { |
| 124 | t.Fatalf("expected timeout marker: %q", out) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | func TestBashCustomTimeoutHonored(t *testing.T) { |