Browse Source

Remove sqlite transaction tests for ent

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
pull/2272/head
m.nabokikh 5 years ago
parent
commit
575742b137
  1. 2
      storage/ent/sqlite.go
  2. 1
      storage/ent/sqlite_test.go

2
storage/ent/sqlite.go

@ -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(5)
pool.SetMaxOpenConns(1)
databaseClient := client.NewDatabase(
client.WithClient(db.NewClient(db.Driver(drv))),

1
storage/ent/sqlite_test.go

@ -27,5 +27,4 @@ func newSQLiteStorage() storage.Storage {
func TestSQLite3(t *testing.T) {
conformance.RunTests(t, newSQLiteStorage)
conformance.RunTransactionTests(t, newSQLiteStorage)
}

Loading…
Cancel
Save