diff options
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 c3bd3cc4..51393dfd 100644 --- a/cache/repo_cache_test.go +++ b/cache/repo_cache_test.go @@ -5,6 +5,7 @@ import ( "github.com/stretchr/testify/require" + "github.com/MichaelMure/git-bug/query" "github.com/MichaelMure/git-bug/repository" ) @@ -68,9 +69,9 @@ func TestCache(t *testing.T) { require.NoError(t, err) // Querying - query, err := ParseQuery("status:open author:descartes sort:edit-asc") + q, err := query.Parse("status:open author:descartes sort:edit-asc") require.NoError(t, err) - require.Len(t, cache.QueryBugs(query), 2) + require.Len(t, cache.QueryBugs(q), 2) // Close require.NoError(t, cache.Close()) |