aboutsummaryrefslogtreecommitdiffstats
path: root/commands/select/select_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-05-27 21:14:55 +0200
committerMichael Muré <batolettre@gmail.com>2019-05-27 21:14:55 +0200
commitc7abac388aadd274d4f23f996a15f8bba90f2a92 (patch)
treeced1116de500346eb340f72b7bfc672136e40c1e /commands/select/select_test.go
parent9865dfcdf0810e288283f2ef4eba450041db32f9 (diff)
downloadgit-bug-c7abac388aadd274d4f23f996a15f8bba90f2a92.tar.gz
repo: refactor how test repo are created/cleaned
Diffstat (limited to 'commands/select/select_test.go')
-rw-r--r--commands/select/select_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/commands/select/select_test.go b/commands/select/select_test.go
index 29fdb3b8..b9594fee 100644
--- a/commands/select/select_test.go
+++ b/commands/select/select_test.go
@@ -4,13 +4,15 @@ import (
"testing"
"time"
- "github.com/MichaelMure/git-bug/cache"
- "github.com/MichaelMure/git-bug/util/test"
"github.com/stretchr/testify/require"
+
+ "github.com/MichaelMure/git-bug/cache"
+ "github.com/MichaelMure/git-bug/repository"
)
func TestSelect(t *testing.T) {
- repo := test.CreateRepo(false)
+ repo := repository.CreateTestRepo(false)
+ defer repository.CleanupTestRepos(t, repo)
repoCache, err := cache.NewRepoCache(repo)
require.NoError(t, err)
@@ -75,6 +77,4 @@ func TestSelect(t *testing.T) {
// Resolve without a pattern should error again after clearing the selected bug
_, _, err = ResolveBug(repoCache, []string{})
require.Error(t, err)
-
- require.NoError(t, test.CleanupRepo(repo))
}