Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Nov 19, 2024
1 parent 0fc9e66 commit dd68806
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ func createTestRepositories() (repository.Repository, repository.Repository, err
}

dsn := fmt.Sprintf("host=localhost port=5432 user=%s password=%s dbname=%s", "postgres", "postgres", "postgres")
db := assetdb.New(sqlrepo.Postgres, dsn)
if db == nil {
db, err := repository.New(sqlrepo.Postgres, dsn)
if err != nil || db == nil {
return nil, nil, errors.New("failed to create the database")
}

return cache.Repo, db.Repo, nil
return cache.Repo, db, nil
}

0 comments on commit dd68806

Please sign in to comment.