diff options
Diffstat (limited to 'cache/repo_cache_test.go')
-rw-r--r-- | cache/repo_cache_test.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go index 8f4d47d0..7e38b6bc 100644 --- a/cache/repo_cache_test.go +++ b/cache/repo_cache_test.go @@ -3,12 +3,14 @@ package cache import ( "testing" - "github.com/MichaelMure/git-bug/util/test" "github.com/stretchr/testify/require" + + "github.com/MichaelMure/git-bug/repository" ) func TestCache(t *testing.T) { - repo := test.CreateRepo(false) + repo := repository.CreateTestRepo(false) + defer repository.CleanupTestRepos(t, repo) cache, err := NewRepoCache(repo) require.NoError(t, err) @@ -101,8 +103,8 @@ func TestCache(t *testing.T) { } func TestPushPull(t *testing.T) { - repoA, repoB, remote := test.SetupReposAndRemote(t) - defer test.CleanupRepos(repoA, repoB, remote) + repoA, repoB, remote := repository.SetupReposAndRemote(t) + defer repository.CleanupTestRepos(t, repoA, repoB, remote) cacheA, err := NewRepoCache(repoA) require.NoError(t, err) |