mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-18 05:05:29 +00:00
chore: fix tests
This commit is contained in:
parent
4c66edc170
commit
6eb3ff412d
@ -22,8 +22,10 @@ func NewTestingStore(ctx context.Context, t *testing.T) *store.Store {
|
|||||||
if err := dbDriver.Migrate(ctx); err != nil {
|
if err := dbDriver.Migrate(ctx); err != nil {
|
||||||
fmt.Printf("failed to migrate db, error: %+v\n", err)
|
fmt.Printf("failed to migrate db, error: %+v\n", err)
|
||||||
}
|
}
|
||||||
if err := dbDriver.Seed(ctx); err != nil {
|
if profile.Driver == "postgres" {
|
||||||
fmt.Printf("failed to seed db, error: %+v\n", err)
|
if err := dbDriver.Seed(ctx); err != nil {
|
||||||
|
fmt.Printf("failed to seed db, error: %+v\n", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
store := store.New(dbDriver, profile)
|
store := store.New(dbDriver, profile)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user