Commit 2a9576b
test(tracing): update obs_span invalid-context test to the None-fallback contract
The comment-#2 fix changed open_obs_span so an invalid wrapper context returns
None (caller falls back to ambient obs_correlation()) instead of a handle with
empty correlation. The pre-existing tests/lib/core/tracing/test_obs_span.py still
asserted the old contract and failed CI. Update it to assert None + that the
attached context is detached and the no-op span ended (no leak).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9018a61 commit 2a9576b
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
155 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
156 | 163 | | |
157 | 164 | | |
158 | 165 | | |
159 | 166 | | |
| 167 | + | |
160 | 168 | | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
164 | | - | |
165 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
166 | 176 | | |
167 | 177 | | |
168 | 178 | | |
| |||
0 commit comments