diff options
author | Michael Muré <batolettre@gmail.com> | 2021-04-08 16:25:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 16:25:22 +0200 |
commit | bc5f618eba812859bf87ce2c31b278bd518d4555 (patch) | |
tree | 6429e6c47de93660b16debfa244427e79e7aed85 /cache/repo_cache_test.go | |
parent | a3e098d76314fbb197a6fbd85d2e1df02c9e00fe (diff) | |
parent | 554992523574684ecce36d38bf5310bff52c8c03 (diff) | |
download | git-bug-bc5f618eba812859bf87ce2c31b278bd518d4555.tar.gz |
Merge pull request #628 from MichaelMure/entity-fix
cache: many fixes following the dag entity migration
Diffstat (limited to 'cache/repo_cache_test.go')
-rw-r--r-- | cache/repo_cache_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go index fab8fff0..d13fa026 100644 --- a/cache/repo_cache_test.go +++ b/cache/repo_cache_test.go @@ -86,11 +86,12 @@ func TestCache(t *testing.T) { require.Empty(t, cache.identities) require.Empty(t, cache.identitiesExcerpts) - // Reload, only excerpt are loaded + // Reload, only excerpt are loaded, but as we need to load the identities used in the bugs + // to check the signatures, we also load the identity used above cache, err = NewRepoCache(repo) require.NoError(t, err) require.Empty(t, cache.bugs) - require.Empty(t, cache.identities) + require.Len(t, cache.identities, 1) require.Len(t, cache.bugExcerpts, 2) require.Len(t, cache.identitiesExcerpts, 2) |