aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cache')
-rw-r--r--cache/repo_cache_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go
index c0f7f189..0037c7bb 100644
--- a/cache/repo_cache_test.go
+++ b/cache/repo_cache_test.go
@@ -12,7 +12,7 @@ import (
)
func TestCache(t *testing.T) {
- repo := repository.CreateTestRepo(false)
+ repo := repository.CreateGoGitTestRepo(false)
defer repository.CleanupTestRepos(repo)
cache, err := NewRepoCache(repo)
@@ -162,9 +162,9 @@ func TestPushPull(t *testing.T) {
}
func TestRemove(t *testing.T) {
- repo := repository.CreateTestRepo(false)
- remoteA := repository.CreateTestRepo(true)
- remoteB := repository.CreateTestRepo(true)
+ repo := repository.CreateGoGitTestRepo(false)
+ remoteA := repository.CreateGoGitTestRepo(true)
+ remoteB := repository.CreateGoGitTestRepo(true)
defer repository.CleanupTestRepos(repo, remoteA, remoteB)
err := repo.AddRemote("remoteA", "file://"+remoteA.GetPath())
@@ -211,7 +211,7 @@ func TestRemove(t *testing.T) {
}
func TestCacheEviction(t *testing.T) {
- repo := repository.CreateTestRepo(false)
+ repo := repository.CreateGoGitTestRepo(false)
repoCache, err := NewRepoCache(repo)
require.NoError(t, err)
repoCache.setCacheSize(2)