Fix sqlite an mysql tests

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
m.nabokikh
2021-09-13 18:48:46 +04:00
parent fb38e1235d
commit 4d4edaf540
2 changed files with 1 additions and 46 deletions

View File

@@ -36,7 +36,7 @@ func (s *SQLite3) Open(logger log.Logger) (storage.Storage, error) {
// always allow only one connection to sqlite3, any other thread/go-routine
// attempting concurrent access will have to wait
pool := drv.DB()
pool.SetMaxOpenConns(1)
pool.SetMaxOpenConns(5)
databaseClient := client.NewDatabase(
client.WithClient(db.NewClient(db.Driver(drv))),