Fix tests on CI (2)
This commit is contained in:
@@ -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{
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user