(t *testing.T)
| 136 | } |
| 137 | |
| 138 | func TestRunError(t *testing.T) { |
| 139 | shell, err := exec.LookPath("sh") |
| 140 | if err != nil || shell == "" { |
| 141 | t.Skip("'sh' binary not available on OS, skipping.") |
| 142 | } |
| 143 | cmd := exec.Command(shell, "-c", "false") |
| 144 | err = RunTimeout(cmd, time.Second) |
| 145 | |
| 146 | require.Error(t, err) |
| 147 | } |
| 148 | |
| 149 | func TestRandomSleep(t *testing.T) { |
| 150 | // TODO: Fix this test |
nothing calls this directly
no test coverage detected
searching dependent graphs…