Fix SQLite unit tests

This commit is contained in:
Neil Alexander 2022-07-12 13:56:34 +01:00
parent b13ca0c0e4
commit 6576164023
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -60,8 +60,8 @@ func CreateBaseDendrite(t *testing.T, dbType test.DBType) (*base.BaseDendrite, f
case test.DBTypeSQLite:
cfg.Defaults(config.DefaultOpts{
Generate: true,
Monolithic: true,
}) // sets a sqlite db per component
Monolithic: false, // because we need a database per component
})
// use a distinct prefix else concurrent postgres/sqlite runs will clash since NATS will use
// the file system event with InMemory=true :(
cfg.Global.JetStream.TopicPrefix = fmt.Sprintf("Test_%d_", dbType)