You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2024/04/26 02:27:02 UTC
(incubator-answer) 08/10: enhancement: 909; fix broken tests
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 6ff4a8b1b0aba5a6bb6be48d28e361c33c98003a
Author: zahash <za...@gmail.com>
AuthorDate: Tue Apr 23 20:36:53 2024 +0530
enhancement: 909; fix broken tests
---
internal/repo/repo_test/tag_rel_repo_test.go | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/internal/repo/repo_test/tag_rel_repo_test.go b/internal/repo/repo_test/tag_rel_repo_test.go
index edcd45e9..f3696590 100644
--- a/internal/repo/repo_test/tag_rel_repo_test.go
+++ b/internal/repo/repo_test/tag_rel_repo_test.go
@@ -36,13 +36,13 @@ var (
tagRelOnce sync.Once
testTagRelList = []*entity.TagRel{
{
- ObjectID: "10010000000000001",
- TagID: "10030000000000001",
+ ObjectID: "10010000000000101",
+ TagID: "10030000000000101",
Status: entity.TagRelStatusAvailable,
},
{
- ObjectID: "10010000000000002",
- TagID: "10030000000000002",
+ ObjectID: "10010000000000202",
+ TagID: "10030000000000202",
Status: entity.TagRelStatusAvailable,
},
}
@@ -68,7 +68,7 @@ func Test_tagListRepo_BatchGetObjectTagRelList(t *testing.T) {
func Test_tagListRepo_CountTagRelByTagID(t *testing.T) {
tagRelOnce.Do(addTagRelList)
tagRelRepo := tag.NewTagRelRepo(testDataSource, unique.NewUniqueIDRepo(testDataSource))
- count, err := tagRelRepo.CountTagRelByTagID(context.TODO(), "10030000000000001")
+ count, err := tagRelRepo.CountTagRelByTagID(context.TODO(), "10030000000000101")
assert.NoError(t, err)
assert.Equal(t, int64(1), count)
}
@@ -96,7 +96,7 @@ func Test_tagListRepo_GetObjectTagRelWithoutStatus(t *testing.T) {
err = tagRelRepo.RemoveTagRelListByIDs(context.TODO(), ids)
assert.NoError(t, err)
- count, err := tagRelRepo.CountTagRelByTagID(context.TODO(), "10030000000000001")
+ count, err := tagRelRepo.CountTagRelByTagID(context.TODO(), "10030000000000101")
assert.NoError(t, err)
assert.Equal(t, int64(0), count)
@@ -107,7 +107,7 @@ func Test_tagListRepo_GetObjectTagRelWithoutStatus(t *testing.T) {
err = tagRelRepo.EnableTagRelByIDs(context.TODO(), ids)
assert.NoError(t, err)
- count, err = tagRelRepo.CountTagRelByTagID(context.TODO(), "10030000000000001")
+ count, err = tagRelRepo.CountTagRelByTagID(context.TODO(), "10030000000000101")
assert.NoError(t, err)
assert.Equal(t, int64(1), count)
}