Skip to content

Ensure test cache is not used for 'go test'

Ash McKenzie requested to merge ashmckenzie/always-set-count-1-for-race-test into main

According to 'go help test':

The idiomatic way to disable test caching explicitly is to use -count=1

For CI this won't have much affect, but when running the tests locally it will ensure no caching is used to ensure cache does not play a part in the test outcome. I was debugging !771 (merged) and @jaime (thanks!) suggested adding -count 1 so we don't cache.

Merge request reports