mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
Add test for removing bug from cache
This commit is contained in:
parent
4e4ca106ae
commit
7dbcca84c7
5
cache/repo_cache_test.go
vendored
5
cache/repo_cache_test.go
vendored
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user