summaryrefslogtreecommitdiffstats
path: root/models/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user_test.go')
-rw-r--r--models/user_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/user_test.go b/models/user_test.go
index 02319e4350..e0d4e164fc 100644
--- a/models/user_test.go
+++ b/models/user_test.go
@@ -368,6 +368,8 @@ func TestCreateUser_Issue5882(t *testing.T) {
}
func TestGetUserIDsByNames(t *testing.T) {
+ assert.NoError(t, PrepareTestDatabase())
+
// ignore non existing
IDs, err := GetUserIDsByNames([]string{"user1", "user2", "none_existing_user"}, true)
assert.NoError(t, err)
@@ -380,6 +382,8 @@ func TestGetUserIDsByNames(t *testing.T) {
}
func TestGetMaileableUsersByIDs(t *testing.T) {
+ assert.NoError(t, PrepareTestDatabase())
+
results, err := GetMaileableUsersByIDs([]int64{1, 4}, false)
assert.NoError(t, err)
assert.Equal(t, 1, len(results))