diff --git a/test/helpers.go b/test/helpers.go index 72fc9e318..ce2de88df 100644 --- a/test/helpers.go +++ b/test/helpers.go @@ -72,7 +72,7 @@ func UseTempGitRepo() *TempGitRepo { func MockGraphQLResponse(fixturePath string) (teardown func()) { pwd, _ := os.Getwd() - fixturePath := filepath.Join(pwd, "..", fixturePath) + fixturePath = filepath.Join(pwd, "..", fixturePath) originalGraphQL := api.GraphQL api.GraphQL = func(query string, variables map[string]string, v interface{}) error {