diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-09 01:55:16 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-10-08 20:55:16 +0300 |
commit | 170743c8a0cdf216ee21076aadc5d905dfef0cd6 (patch) | |
tree | a5b58a617e6afcfb1fc20044a87cc8f34465d5b2 /models/issue_test.go | |
parent | 78438d310be42f9c5e0e2937ee54e6050cc8f381 (diff) | |
download | gitea-170743c8a0cdf216ee21076aadc5d905dfef0cd6.tar.gz gitea-170743c8a0cdf216ee21076aadc5d905dfef0cd6.zip |
Revert "Fix issues/pr list broken when there are many repositories (#8409)" (#8427)
This reverts commit 78438d310be42f9c5e0e2937ee54e6050cc8f381.
Diffstat (limited to 'models/issue_test.go')
-rw-r--r-- | models/issue_test.go | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/models/issue_test.go b/models/issue_test.go index 65f4d6ba66..9cd9ff0ad9 100644 --- a/models/issue_test.go +++ b/models/issue_test.go @@ -10,7 +10,6 @@ import ( "time" "github.com/stretchr/testify/assert" - "xorm.io/builder" ) func TestIssue_ReplaceLabels(t *testing.T) { @@ -267,12 +266,10 @@ func TestGetUserIssueStats(t *testing.T) { }, { UserIssueStatsOptions{ - UserID: 2, - RepoSubQuery: builder.Select("repository.id"). - From("repository"). - Where(builder.In("repository.id", []int64{1, 2})), - FilterMode: FilterModeAll, - IsClosed: true, + UserID: 2, + UserRepoIDs: []int64{1, 2}, + FilterMode: FilterModeAll, + IsClosed: true, }, IssueStats{ YourRepositoriesCount: 2, |