From 2aaaef79f7f31870fc3ecddad2894dc902f63781 Mon Sep 17 00:00:00 2001 From: Johnny Date: Tue, 18 Feb 2025 22:32:30 +0800 Subject: [PATCH] chore: fix tests --- store/db/postgres/memo_filter_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/db/postgres/memo_filter_test.go b/store/db/postgres/memo_filter_test.go index 95fb626ba..a42370a1d 100644 --- a/store/db/postgres/memo_filter_test.go +++ b/store/db/postgres/memo_filter_test.go @@ -26,7 +26,7 @@ func TestRestoreExprToSQL(t *testing.T) { }, { filter: `content.contains("memos")`, - want: "memo.content ILIKE LIKE $1", + want: "memo.content ILIKE $1", args: []any{"%memos%"}, }, { @@ -46,7 +46,7 @@ func TestRestoreExprToSQL(t *testing.T) { }, { filter: `tag in ['tag1'] || content.contains('hello')`, - want: "(memo.payload->'tags' @> $1::jsonb OR memo.content ILIKE LIKE $2)", + want: "(memo.payload->'tags' @> $1::jsonb OR memo.content ILIKE $2)", args: []any{[]any{"tag1"}, "%hello%"}, }, }