diff options
-rw-r--r-- | cache/repo_cache_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go index 0a333c8f..276da4be 100644 --- a/cache/repo_cache_test.go +++ b/cache/repo_cache_test.go @@ -101,6 +101,11 @@ func TestCache(t *testing.T) { require.NoError(t, err) _, err = cache.ResolveBugPrefix(bug1.Id().String()[:10]) require.NoError(t, err) + + // Possible to delete a bug + err = cache.RemoveBug([]string{bug1.Id().Human()}) + require.NoError(t, err) + require.Equal(t, len(cache.AllBugsIds()), 1) } func TestPushPull(t *testing.T) { |