Use CreateBaseDendrite instead of Base()

This commit is contained in:
Till Faelligen 2023-03-06 12:25:11 +01:00
parent c2e60aea12
commit dfd910269f
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -1137,8 +1137,8 @@ func TestUpdateRelations(t *testing.T) {
room := test.NewRoom(t, alice)
test.WithAllDatabases(t, func(t *testing.T, dbType test.DBType) {
base, _, _ := testrig.Base(nil)
defer base.Close()
base, shutdownBase := testrig.CreateBaseDendrite(t, dbType)
t.Cleanup(shutdownBase)
db, err := storage.NewSyncServerDatasource(base, &base.Cfg.SyncAPI.Database)
if err != nil {
t.Fatal(err)