Commit fdb9234
authored
Update Compute 'TestInit` test to use 'threadsafe.Buffer' (#1601)
### Change summary
This PR eliminates the intermittent behavior of the `TestInit` function
failing on the `windows-latest` test, which was caused by a race
condition associated with the CLI `yacspin spinner`. Replacing the
output capture from `bytes.Buffer` to `threadsafe.Buffer` ensures that
race conditions are no longer occur by removing potential unsafe access
to the buffer.
All Submissions:
* [x] Have you followed the guidelines in our Contributing document?
* [x] Have you checked to ensure there aren't other open [Pull
Requests](https://github.com/fastly/cli/pulls) for the same
update/change?1 parent 0188b60 commit fdb9234
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
454 | 453 | | |
455 | 454 | | |
456 | 455 | | |
457 | | - | |
| 456 | + | |
458 | 457 | | |
459 | 458 | | |
460 | 459 | | |
| |||
0 commit comments