fix: error check

This commit is contained in:
afjcjsbx 2026-02-26 11:17:59 +01:00
parent 381270c323
commit 36320767fb

View file

@ -23,6 +23,10 @@ func processExists(pid int) bool {
func TestShellTool_TimeoutKillsChildProcess(t *testing.T) {
tool, err := NewExecTool(t.TempDir(), false)
if err != nil {
t.Errorf("unable to configure exec tool: %s", err)
}
tool.SetTimeout(500 * time.Millisecond)
args := map[string]any{