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 /bridge/github | |
parent | 9865dfcdf0810e288283f2ef4eba450041db32f9 (diff) | |
download | git-bug-c7abac388aadd274d4f23f996a15f8bba90f2a92.tar.gz |
repo: refactor how test repo are created/cleaned
Diffstat (limited to 'bridge/github')
-rw-r--r-- | bridge/github/import_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bridge/github/import_test.go b/bridge/github/import_test.go index 7f83130c..1e31501b 100644 --- a/bridge/github/import_test.go +++ b/bridge/github/import_test.go @@ -13,8 +13,8 @@ import ( "github.com/MichaelMure/git-bug/bug" "github.com/MichaelMure/git-bug/cache" "github.com/MichaelMure/git-bug/identity" + "github.com/MichaelMure/git-bug/repository" "github.com/MichaelMure/git-bug/util/interrupt" - "github.com/MichaelMure/git-bug/util/test" ) func Test_Importer(t *testing.T) { @@ -124,7 +124,8 @@ func Test_Importer(t *testing.T) { }, } - repo := test.CreateRepo(false) + repo := repository.CreateTestRepo(false) + defer repository.CleanupTestRepos(t, repo) backend, err := cache.NewRepoCache(repo) require.NoError(t, err) |