(t *testing.T)
| 161 | } |
| 162 | |
| 163 | func TestShellTool_HandlerError(t *testing.T) { |
| 164 | t.Parallel() |
| 165 | tool := New(nil, &config.RuntimeConfig{Config: config.Config{WorkingDir: t.TempDir()}}) |
| 166 | |
| 167 | result, err := tool.handler.RunShell(t.Context(), RunShellArgs{ |
| 168 | Cmd: "command_that_does_not_exist", |
| 169 | Cwd: "", |
| 170 | }) |
| 171 | require.NoError(t, err, "Handler should not return an error") |
| 172 | assert.Contains(t, result.Output, "Error executing command") |
| 173 | } |
| 174 | |
| 175 | func TestShellTool_OutputSchema(t *testing.T) { |
| 176 | t.Parallel() |