From 0ac39a7ab5db077fcf0df827e32bf6e625e980da Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 19 Nov 2022 11:33:12 +0100 Subject: WIP --- cache/repo_cache_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cache/repo_cache_test.go') 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) { -- cgit