Skip to content

Commit a486a46

Browse files
committed
adjust tests to new added user
1 parent a85694f commit a486a46

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

models/user/user_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ func TestSearchUsers(t *testing.T) {
9999
}
100100

101101
testUserSuccess(&user_model.SearchUserOptions{OrderBy: "id ASC", ListOptions: db.ListOptions{Page: 1}},
102-
[]int64{1, 2, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 24, 27, 28, 29, 30, 32})
102+
[]int64{1, 2, 4, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 24, 27, 28, 29, 30, 32, 34})
103103

104104
testUserSuccess(&user_model.SearchUserOptions{ListOptions: db.ListOptions{Page: 1}, IsActive: util.OptionalBoolFalse},
105105
[]int64{9})
106106

107107
testUserSuccess(&user_model.SearchUserOptions{OrderBy: "id ASC", ListOptions: db.ListOptions{Page: 1}, IsActive: util.OptionalBoolTrue},
108-
[]int64{1, 2, 4, 5, 8, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 24, 27, 28, 29, 30, 32})
108+
[]int64{1, 2, 4, 5, 8, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 24, 27, 28, 29, 30, 32, 34})
109109

110110
testUserSuccess(&user_model.SearchUserOptions{Keyword: "user1", OrderBy: "id ASC", ListOptions: db.ListOptions{Page: 1}, IsActive: util.OptionalBoolTrue},
111111
[]int64{1, 10, 11, 12, 13, 14, 15, 16, 18})

tests/integration/api_nodeinfo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestNodeinfo(t *testing.T) {
3333
DecodeJSON(t, resp, &nodeinfo)
3434
assert.True(t, nodeinfo.OpenRegistrations)
3535
assert.Equal(t, "gitea", nodeinfo.Software.Name)
36-
assert.Equal(t, 24, nodeinfo.Usage.Users.Total)
36+
assert.Equal(t, 25, nodeinfo.Usage.Users.Total)
3737
assert.Equal(t, 18, nodeinfo.Usage.LocalPosts)
3838
assert.Equal(t, 2, nodeinfo.Usage.LocalComments)
3939
})

tests/integration/setting_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestSettingShowUserEmailExplore(t *testing.T) {
2525
htmlDoc := NewHTMLParser(t, resp.Body)
2626
assert.Contains(t,
2727
htmlDoc.doc.Find(".ui.user.list").Text(),
28-
"user4@example.com",
28+
"user34@example.com",
2929
)
3030

3131
setting.UI.ShowUserEmail = false
@@ -35,7 +35,7 @@ func TestSettingShowUserEmailExplore(t *testing.T) {
3535
htmlDoc = NewHTMLParser(t, resp.Body)
3636
assert.NotContains(t,
3737
htmlDoc.doc.Find(".ui.user.list").Text(),
38-
"user4@example.com",
38+
"user34@example.com",
3939
)
4040

4141
setting.UI.ShowUserEmail = showUserEmail

0 commit comments

Comments
 (0)