Commit 09aaeb0
chore: fix G118 in chat tests with t.Cleanup instead of nolint
Use t.Cleanup(cancel) so the context is always cancelled at test end,
replacing the nolint suppression. The extraction.go case genuinely
cannot be restructured (cancel stored in struct, called on close).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c752c06 commit 09aaeb0
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
0 commit comments