diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-09 07:29:54 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-09 07:30:04 +0000 |
| commit | b33566b534185a444a392c36e3f307a5ecad8d4b (patch) | |
| tree | e666877ad50c52014d476e6f8bb66d109ec669d5 /internal/config/config_test.go | |
| parent | 3b4c50ead2885e9caef85193b68c12ccdb671ef1 (diff) | |
api: add configurable mockRunner and async error-path tests
Replace the no-op mockRunner in server_test.go with a configurable
version that supports err and sleep fields. Add testServerWithRunner
helper and a pollState utility for async assertions.
Add three new tests that exercise the pool's error paths end-to-end:
- TestRunTask_AgentFails_TaskSetToFailed
- TestRunTask_AgentTimesOut_TaskSetToTimedOut
- TestRunTask_AgentCancelled_TaskSetToCancelled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/config/config_test.go')
0 files changed, 0 insertions, 0 deletions
