diff options
author | Michael Muré <batolettre@gmail.com> | 2019-05-27 21:14:55 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-05-27 21:14:55 +0200 |
commit | c7abac388aadd274d4f23f996a15f8bba90f2a92 (patch) | |
tree | ced1116de500346eb340f72b7bfc672136e40c1e /bug/operation_test.go | |
parent | 9865dfcdf0810e288283f2ef4eba450041db32f9 (diff) | |
download | git-bug-c7abac388aadd274d4f23f996a15f8bba90f2a92.tar.gz |
repo: refactor how test repo are created/cleaned
Diffstat (limited to 'bug/operation_test.go')
-rw-r--r-- | bug/operation_test.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bug/operation_test.go b/bug/operation_test.go index f9a7d191..0ddb61c2 100644 --- a/bug/operation_test.go +++ b/bug/operation_test.go @@ -4,11 +4,11 @@ import ( "testing" "time" + "github.com/stretchr/testify/require" + "github.com/MichaelMure/git-bug/identity" "github.com/MichaelMure/git-bug/repository" "github.com/MichaelMure/git-bug/util/git" - "github.com/MichaelMure/git-bug/util/test" - "github.com/stretchr/testify/require" ) func TestValidate(t *testing.T) { @@ -80,9 +80,12 @@ func TestMetadata(t *testing.T) { } func TestHash(t *testing.T) { + repo := repository.CreateTestRepo(false) + defer repository.CleanupTestRepos(t, repo) + repos := []repository.ClockedRepo{ repository.NewMockRepoForTest(), - test.CreateRepo(false), + repo, } for _, repo := range repos { |