Commit f289c8c
fix(test): wait for task completion before fetching documents
The testGetTaskDocumentsClient test was calling getTaskDocuments on a
task that hadn't completed yet, causing a JsonException when trying to
parse the NDJSON response. Wait for the task to finish first.
Also removes the redundant assertNotEmpty($documents) that phpstan
flagged as alreadyNarrowedType since the array is guaranteed non-empty
by the assertNotEmpty($lines) above.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 81d91b5 commit f289c8c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments