test: create user via store

This commit is contained in:
Denis Gukov 2022-11-07 01:43:35 +05:00
parent ea2a2561d8
commit f9dab50d23

View File

@ -139,7 +139,10 @@ func addUser() *db.User {
Username: "ITU-" + uid,
Email: "test@semaphore." + uid,
}
if err := store.Sql().Insert(&user); err != nil {
user, err := store.CreateUserWithoutPassword(user)
if err != nil {
panic(err)
}
return &user