Uncached Go tests: avoid flaky tests

jotafeldmann profile image Jota Feldmann ・1 min read

So, crazy about your integration tests with Go?

I was totally crazy testing my endpoints, and, for hours, I didn't know why some tests were flaky in my CI environment.

But since Go 1.10 tests are cached.

To avoid cache, you can use:

go test -count=1

Thanks @marciorodrigues and that issue.


Editor guide