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