Fix tests on CI (2)
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
primarydb "blackforestbytes.com/simplecloudnotifier/db/impl/primary"
|
||||
requestsdb "blackforestbytes.com/simplecloudnotifier/db/impl/requests"
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type DBPool struct {
|
||||
@@ -19,17 +20,17 @@ func NewDBPool(conf scn.Config) (*DBPool, error) {
|
||||
|
||||
dbprimary, err := primarydb.NewPrimaryDatabase(conf)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("failed to create primary database: %w", err)
|
||||
}
|
||||
|
||||
dbrequests, err := requestsdb.NewRequestsDatabase(conf)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("failed to create requests database: %w", err)
|
||||
}
|
||||
|
||||
dblogs, err := logsdb.NewLogsDatabase(conf)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("failed to create logs database: %w", err)
|
||||
}
|
||||
|
||||
return &DBPool{
|
||||
|
||||
Reference in New Issue
Block a user