Fix tests on CI (2)
All checks were successful
Build Docker and Deploy / Build Docker Container (push) Successful in 48s
Build Docker and Deploy / Run Unit-Tests (push) Successful in 8m38s
Build Docker and Deploy / Deploy to Server (push) Successful in 9s

This commit is contained in:
2025-05-11 20:32:49 +02:00
parent 56db0929d1
commit cc13f8a0f3
8 changed files with 42 additions and 574 deletions

View File

@@ -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{