diff options
author | Michael Muré <batolettre@gmail.com> | 2020-10-04 19:56:16 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-10-04 19:56:16 +0200 |
commit | 1a0c86a12d68a2f0ee99cbff535c82e07b735108 (patch) | |
tree | cd83782c576f2869555913d753de1351ff94a547 /cache/repo_cache_test.go | |
parent | 9bc2483df054387c1241b2e1644ab7e6e9bc4e9a (diff) | |
download | git-bug-1a0c86a12d68a2f0ee99cbff535c82e07b735108.tar.gz |
repo: use go-git in more places, fix push
Diffstat (limited to 'cache/repo_cache_test.go')
-rw-r--r-- | cache/repo_cache_test.go | 10 |
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) |