fix: error check
This commit is contained in:
parent
381270c323
commit
36320767fb
1 changed files with 4 additions and 0 deletions
|
|
@ -23,6 +23,10 @@ func processExists(pid int) bool {
|
||||||
|
|
||||||
func TestShellTool_TimeoutKillsChildProcess(t *testing.T) {
|
func TestShellTool_TimeoutKillsChildProcess(t *testing.T) {
|
||||||
tool, err := NewExecTool(t.TempDir(), false)
|
tool, err := NewExecTool(t.TempDir(), false)
|
||||||
|
if err != nil {
|
||||||
|
t.Errorf("unable to configure exec tool: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
tool.SetTimeout(500 * time.Millisecond)
|
tool.SetTimeout(500 * time.Millisecond)
|
||||||
|
|
||||||
args := map[string]any{
|
args := map[string]any{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue