diff options
Diffstat (limited to 'cache/repo_cache_test.go')
-rw-r--r-- | cache/repo_cache_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go index a9557ff0..58ade144 100644 --- a/cache/repo_cache_test.go +++ b/cache/repo_cache_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" "github.com/MichaelMure/git-bug/entities/bug" + "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/query" "github.com/MichaelMure/git-bug/repository" ) @@ -213,7 +214,7 @@ func TestRemove(t *testing.T) { assert.Equal(t, 1, len(repoCache.bugExcerpts)) _, err = repoCache.ResolveBug(b1.Id()) - assert.Error(t, bug.ErrBugNotExist, err) + assert.ErrorIs(t, entity.ErrNotFound{}, err) } func TestCacheEviction(t *testing.T) { |