diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2018-09-13 10:33:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-13 10:33:48 +0800 |
commit | ea20adaa84cbff762fcaa7f2d5fa6b7bf56706ec (patch) | |
tree | c2d09da1dcb0a00654963b30dbf5eeb152c83857 /models/topic_test.go | |
parent | 7dd93b2441fc4eac89ccf6b919bf46823334c8bf (diff) | |
download | gitea-ea20adaa84cbff762fcaa7f2d5fa6b7bf56706ec.tar.gz gitea-ea20adaa84cbff762fcaa7f2d5fa6b7bf56706ec.zip |
feat(repo): support search repository by topic name (#4505)
* feat(repo): support search repository by topic name
Diffstat (limited to 'models/topic_test.go')
-rw-r--r-- | models/topic_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/topic_test.go b/models/topic_test.go index ef374e557b..65e52afb12 100644 --- a/models/topic_test.go +++ b/models/topic_test.go @@ -15,7 +15,7 @@ func TestAddTopic(t *testing.T) { topics, err := FindTopics(&FindTopicOptions{}) assert.NoError(t, err) - assert.EqualValues(t, 3, len(topics)) + assert.EqualValues(t, 4, len(topics)) topics, err = FindTopics(&FindTopicOptions{ Limit: 2, @@ -32,7 +32,7 @@ func TestAddTopic(t *testing.T) { assert.NoError(t, SaveTopics(2, "golang")) topics, err = FindTopics(&FindTopicOptions{}) assert.NoError(t, err) - assert.EqualValues(t, 3, len(topics)) + assert.EqualValues(t, 4, len(topics)) topics, err = FindTopics(&FindTopicOptions{ RepoID: 2, @@ -47,7 +47,7 @@ func TestAddTopic(t *testing.T) { topics, err = FindTopics(&FindTopicOptions{}) assert.NoError(t, err) - assert.EqualValues(t, 4, len(topics)) + assert.EqualValues(t, 5, len(topics)) topics, err = FindTopics(&FindTopicOptions{ RepoID: 2, |