diff --git a/command/pr_test.go b/command/pr_test.go index e1fcf4106..c9ed01825 100644 --- a/command/pr_test.go +++ b/command/pr_test.go @@ -11,7 +11,7 @@ func TestPRList(t *testing.T) { teardown := test.MockGraphQLResponse("pr.json") defer teardown() - gitRepo := test.SetupTempGitRepo() + gitRepo := test.UseTempGitRepo() defer gitRepo.TearDown() output, err := test.RunCommand(RootCmd, "pr list") diff --git a/test/util.go b/test/helpers.go similarity index 98% rename from test/util.go rename to test/helpers.go index 4931c1612..a92ebb3b3 100644 --- a/test/util.go +++ b/test/helpers.go @@ -19,7 +19,7 @@ type TempGitRepo struct { TearDown func() } -func SetupTempGitRepo() *TempGitRepo { +func UseTempGitRepo() *TempGitRepo { github.CreateTestConfigs("mario", "i-love-peach") pwd, _ := os.Getwd()