fix(test): user not created
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:
SoXX 2024-08-13 14:48:31 +02:00
parent f0f216bdaa
commit 6dc78db4a4

View File

@ -98,6 +98,11 @@ func TestGetUserByID(t *testing.T) {
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"}}
validUser, err = CreateUser(ctx, validUser)
if err != nil {
logger.Fatal(err)
}
// Tests
type args struct {
ctx context.Context