A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: tests failing during compilation
Shivashis Padhi1ee7037eb255
diff --git a/internal/repo/repo_test/comment_repo_test.go b/internal/repo/repo_test/comment_repo_test.goindex 8885de7c..2f64cabd 100644--- a/internal/repo/repo_test/comment_repo_test.go+++ b/internal/repo/repo_test/comment_repo_test.go@@ -65,7 +65,7 @@ func Test_commentRepo_UpdateComment(t *testing.T) {assert.NoError(t, err)testCommentEntity.ParsedText = "test"- err = commentRepo.UpdateCommentContent(context.TODO(), testCommentEntity, "", "")+ err = commentRepo.UpdateCommentContent(context.TODO(), testCommentEntity.ID, "test", "test")assert.NoError(t, err)newComment, exist, err := commonCommentRepo.GetComment(context.TODO(), testCommentEntity.ID)diff --git a/internal/repo/repo_test/tag_repo_test.go b/internal/repo/repo_test/tag_repo_test.goindex 895b1972..6d4de838 100644--- a/internal/repo/repo_test/tag_repo_test.go+++ b/internal/repo/repo_test/tag_repo_test.go@@ -93,7 +93,7 @@ func Test_tagRepo_GetTagListByName(t *testing.T) {tagOnce.Do(addTagList)tagCommonRepo := tag_common.NewTagCommonRepo(testDataSource, unique.NewUniqueIDRepo(testDataSource))- gotTags, err := tagCommonRepo.GetTagListByName(context.TODO(), testTagList[0].SlugName, false)+ gotTags, err := tagCommonRepo.GetTagListByName(context.TODO(), testTagList[0].SlugName, false, false)assert.NoError(t, err)assert.Equal(t, testTagList[0].SlugName, gotTags[0].SlugName)}