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",