feat: add test for user store (#1438)

This commit is contained in:
boojack
2023-04-01 22:47:19 +08:00
committed by GitHub
parent 0cddb358c1
commit 0baf6b0e19
5 changed files with 101 additions and 8 deletions

View File

@@ -99,9 +99,8 @@ var (
return
}
st := store.New(db.DBInstance, profile)
if err := setup.Execute(ctx, st, hostUsername, hostPassword); err != nil {
store := store.New(db.DBInstance, profile)
if err := setup.Execute(ctx, store, hostUsername, hostPassword); err != nil {
fmt.Printf("failed to setup, error: %+v\n", err)
return
}