diff --git a/models/issue_assignees_test.go b/models/issue_assignees_test.go index f2eb74a2016b1..79257013f8431 100644 --- a/models/issue_assignees_test.go +++ b/models/issue_assignees_test.go @@ -65,7 +65,7 @@ func TestMakeIDsFromAPIAssigneesToAdd(t *testing.T) { assert.NoError(t, err) assert.Equal(t, []int64{}, IDs) - IDs, err = MakeIDsFromAPIAssigneesToAdd("", []string{"non_existing_user"}) + IDs, err = MakeIDsFromAPIAssigneesToAdd("", []string{"none_existing_user"}) assert.Error(t, err) IDs, err = MakeIDsFromAPIAssigneesToAdd("user1", []string{"user1"}) diff --git a/models/user_test.go b/models/user_test.go index 8be59c5d725d3..f3952422afd33 100644 --- a/models/user_test.go +++ b/models/user_test.go @@ -377,12 +377,12 @@ func TestCreateUser_Issue5882(t *testing.T) { func TestGetUserIDsByNames(t *testing.T) { //ignore non existing - IDs, err := GetUserIDsByNames([]string{"user1", "user2", "do_not_exist"}, true) + IDs, err := GetUserIDsByNames([]string{"user1", "user2", "none_existing_user"}, true) assert.NoError(t, err) assert.Equal(t, []int64{1, 2}, IDs) //ignore non existing IDs, err = GetUserIDsByNames([]string{"user1", "do_not_exist"}, false) assert.Error(t, err) - assert.Equal(t, []int64{}, IDs) + assert.Equal(t, []int64(nil), IDs) }