summaryrefslogtreecommitdiffstats
path: root/models/star_test.go
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-02-03 12:03:49 +0800
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-02-03 12:03:49 +0800
commite2de16065ab0f1b3a5a56a7c805eb6ad6d9aac59 (patch)
tree7ea39d690c1e11851ef42751dcb124e6f00d771f /models/star_test.go
parentbf6f61cc690978bcad416ace8e8da2418602cbf3 (diff)
downloadgitea-e2de16065ab0f1b3a5a56a7c805eb6ad6d9aac59.tar.gz
gitea-e2de16065ab0f1b3a5a56a7c805eb6ad6d9aac59.zip
refactor: set default order by recently star.
Diffstat (limited to 'models/star_test.go')
-rw-r--r--models/star_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/star_test.go b/models/star_test.go
index d9717d9ec9..7b7fd516e3 100644
--- a/models/star_test.go
+++ b/models/star_test.go
@@ -61,8 +61,8 @@ func TestUser_GetStarredRepos(t *testing.T) {
starred, err = user.GetStarredRepos(true)
assert.NoError(t, err)
assert.Len(t, starred, 2)
- assert.Equal(t, int64(2), starred[0].ID)
- assert.Equal(t, int64(4), starred[1].ID)
+ assert.Equal(t, int64(4), starred[0].ID)
+ assert.Equal(t, int64(2), starred[1].ID)
}
func TestUser_GetStarredRepos2(t *testing.T) {