Commit ca90834
test(mcp): Assert span status in non-streaming error paths
The non-streaming branches of test_prompt_handler_with_error and
test_resource_handler_with_error only verified error-event fields,
leaving span status and transaction shape unchecked. Mirror the
streaming-branch assertions and the tool-handler test pattern so
regressions in classic-mode error handling for prompts and resources
are caught.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 2b6fb52 commit ca90834
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
710 | 718 | | |
711 | 719 | | |
712 | 720 | | |
| |||
935 | 943 | | |
936 | 944 | | |
937 | 945 | | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
938 | 954 | | |
939 | 955 | | |
940 | 956 | | |
| |||
0 commit comments