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

@@ -42,7 +42,7 @@ var regexAlias = rext.W(regexp.MustCompile("([A-Za-z_\\-0-9]+)\\s+AS\\s+([A-Za-z
func NewDBPreprocessor(db sq.DB) (*DBPreprocessor, error) {
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
defer cancel()
obj := &DBPreprocessor{

View File

@@ -46,7 +46,7 @@ func NewPrimaryDatabase(cfg server.Config) (*Database, error) {
xdb, err := sqlx.Open("sqlite3", url)
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to open sqlite3 database: %v", err)
}
if conf.SingleConn {
@@ -67,7 +67,7 @@ func NewPrimaryDatabase(cfg server.Config) (*Database, error) {
pp, err := dbtools.NewDBPreprocessor(qqdb)
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to init db-preprocessor: %v", err)
}
qqdb.AddListener(pp)