Commit 80aabc8
fix(claude-code): use create_task RPC in async live tests
The async 130/140 live tests called client.tasks.create, which does not exist
on TasksResource (AttributeError) — it was previously masked by the test_utils
ModuleNotFoundError. Switch to client.agents.create_task(...).result, the same
create-task + send_event + poll pattern the langgraph async tutorials use.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 50d90b1 commit 80aabc8
2 files changed
Lines changed: 8 additions & 4 deletions
File tree
- examples/tutorials/10_async
- 00_base/130_claude_code/tests
- 10_temporal/140_claude_code/tests
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | | - | |
| 219 | + | |
219 | 220 | | |
220 | | - | |
| 221 | + | |
| 222 | + | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
214 | 215 | | |
215 | 216 | | |
216 | | - | |
| 217 | + | |
217 | 218 | | |
218 | | - | |
| 219 | + | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
0 commit comments