Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix acceptance tests on Apple Silicon Macs
We observed sporadic compilation or bytecode issues on Apple Silicon Macs. According to golang/go#42774, the env variable `GODEBUG=asyncpreemptoff=1` works around the issue by disabling asynchronous preemption of goroutines. This might impact garbage collection performance, but restores the same level of reliability to locally running tests as when run in Docker on an Intel based Mac. The `GODEBUG=asyncpreemptoff=1` variable is set when creating the Docker container for running tests locally, and applies to all Go code, including `go vet`, for which we also observed sporadic issues.
- Loading branch information