Commit c8ce604
Fix data race in TestBuildRequestBodyWithProgressWithArchive
Use safe.Buffer instead of bytes.Buffer for stdout and cancel the
context before reading, ensuring the progress goroutine has stopped
writing before assertions run.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 649d574 commit c8ce604
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
156 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
| |||
0 commit comments