Commit a3c0556
Add t.Context() guideline to CLAUDE.md
Document that tests should use t.Context() instead of context.Background()
as Go 1.21+ provides test context that is automatically cancelled when
the test ends.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent bb01f73 commit a3c0556
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
0 commit comments