aboutsummaryrefslogtreecommitdiffstats
path: root/commands/env_testing.go
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-06-16 19:45:51 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-06-16 19:45:51 -0400
commitf3d316d16cc9fadd90faaaf77becbb82f1e09367 (patch)
treec2774988393712b45c5e886bad01e67d61914ad0 /commands/env_testing.go
parent97ae5448781ec57fcd41b0c3296c781054a036cb (diff)
downloadgit-bug-f3d316d16cc9fadd90faaaf77becbb82f1e09367.tar.gz
test(809): remove remaining calls to InitGoRepo in tests
Note that examples still need to shown how a developer would use the library.
Diffstat (limited to 'commands/env_testing.go')
-rw-r--r--commands/env_testing.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/commands/env_testing.go b/commands/env_testing.go
index b3c51c69..48807725 100644
--- a/commands/env_testing.go
+++ b/commands/env_testing.go
@@ -19,15 +19,8 @@ type testEnv struct {
func newTestEnv(t *testing.T) *testEnv {
t.Helper()
- cwd := t.TempDir()
-
- // r := repository.CreateGoGitTestRepo(t, false) // TODO
-
- repo, err := repository.InitGoGitRepo(cwd, gitBugNamespace)
- require.NoError(t, err)
- t.Cleanup(func() {
- require.NoError(t, repo.Close())
- })
+ repo := repository.CreateGoGitTestRepo(t, false)
+ cwd := repository.RepoDir(t, repo)
buf := new(bytes.Buffer)