From 9e9bb62ad4a34047b27583bbb192abc1842a2db0 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Fri, 31 Aug 2018 22:00:03 +0200 Subject: [PATCH] Travis: Don't use cached test results --- run_integration_tests.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run_integration_tests.go b/run_integration_tests.go index 05a513847..26914cb62 100644 --- a/run_integration_tests.go +++ b/run_integration_tests.go @@ -346,11 +346,11 @@ func (env *TravisEnvironment) RunTests() error { // run the tests and gather coverage information (for Go >= 1.10) switch { case v.AtLeast(GoVersion{1, 11, 0}): - err = runWithEnv(env.env, "go", "test", "-mod=vendor", "-coverprofile", "all.cov", "./...") + err = runWithEnv(env.env, "go", "test", "-count", "1", "-mod=vendor", "-coverprofile", "all.cov", "./...") case v.AtLeast(GoVersion{1, 10, 0}): - err = runWithEnv(env.env, "go", "test", "-coverprofile", "all.cov", "./...") + err = runWithEnv(env.env, "go", "test", "-count", "1", "-coverprofile", "all.cov", "./...") default: - err = runWithEnv(env.env, "go", "test", "./...") + err = runWithEnv(env.env, "go", "test", "-count", "1", "./...") } if err != nil { return err