From 0c76e542598795ef08975443cec4a153798de40b Mon Sep 17 00:00:00 2001 From: SoXX Date: Tue, 2 Jul 2024 08:33:53 +0200 Subject: [PATCH] tests: fixed tests that already got fixed Signed-off-by: SoXX --- internal/postgres/tag_test.go | 4 ++-- pkg/database/postgres_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/postgres/tag_test.go b/internal/postgres/tag_test.go index ab15604..d1bc639 100644 --- a/internal/postgres/tag_test.go +++ b/internal/postgres/tag_test.go @@ -1101,8 +1101,8 @@ func TestGetAllTagByTagType(t *testing.T) { db: gormDB, tagType: "aa", }, - want: validTags, - wantErr: false, + want: nil, + wantErr: true, }, { name: "Test 3: No Tag Type", diff --git a/pkg/database/postgres_test.go b/pkg/database/postgres_test.go index 56e2036..04e56c9 100644 --- a/pkg/database/postgres_test.go +++ b/pkg/database/postgres_test.go @@ -3223,7 +3223,7 @@ func Test_postgresqlConnection_GetAllTagsByTagType(t *testing.T) { tagType: "aa", }, want: validTags, - wantErr: false, + wantErr: true, }, { name: "Test 3: No Tag Type",