Allow Go tests running on VS-Code
@@ -225,6 +225,7 @@ func initGoTest(t *testing.T) (tempGoPath string, cleanUp func()) {
t.Skip("Skipping go test. To run go test add the '-test.go=true' option.")
}
clientTestUtils.SetEnvAndAssert(t, "GONOSUMDB", "github.com/jfrog")
+ clientTestUtils.UnSetEnvAndAssert(t, "GOMODCACHE")
createJfrogHomeConfig(t, true)
tempGoPath, cleanUpGoPath := createTempGoPath(t)
return tempGoPath, func() {
