Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/filecache: suppress gc in tests
Now that our CI builds (have for some time) set an explicit GOPLSCACHE, it's not necessary for tests to run the filecache GC, and it is costly since they all try to do so at once. This CL rotates the main loop so the first GC doesn't start until after 5m, by which time the tests are done. This improves the real time of the integration tests on macOS by about 8%. n=3 before: 119 115 117 mean=117s real after: 104 107 111 mean=107s real Change-Id: I5eddb850795976e4a9fde33b0fc909e3d8e87169 Reviewed-on: https://go-review.googlesource.com/c/tools/+/588768 Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Alan Donovan <adonovan@google.com>
- Loading branch information