fix(test): user not created
All checks were successful
Gitea Build Check / Build (push) Successful in 1m11s
All checks were successful
Gitea Build Check / Build (push) Successful in 1m11s
fix an issue where the user was not created
This commit is contained in:
parent
f0f216bdaa
commit
6dc78db4a4
@ -98,6 +98,11 @@ func TestGetUserByID(t *testing.T) {
|
|||||||
validUser := models.User{BaseModel: models.BaseModel[models.UserID]{ID: models.UserID(fmt.Sprintf("%025s", "User1"))}}
|
validUser := models.User{BaseModel: models.BaseModel[models.UserID]{ID: models.UserID(fmt.Sprintf("%025s", "User1"))}}
|
||||||
invalidUser := models.User{BaseModel: models.BaseModel[models.UserID]{ID: "invalid"}}
|
invalidUser := models.User{BaseModel: models.BaseModel[models.UserID]{ID: "invalid"}}
|
||||||
|
|
||||||
|
validUser, err = CreateUser(ctx, validUser)
|
||||||
|
if err != nil {
|
||||||
|
logger.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
// Tests
|
// Tests
|
||||||
type args struct {
|
type args struct {
|
||||||
ctx context.Context
|
ctx context.Context
|
||||||
|
Loading…
Reference in New Issue
Block a user