diff --git a/syncapi/syncapi_test.go b/syncapi/syncapi_test.go index 8c8db7cc5..1cb82ce11 100644 --- a/syncapi/syncapi_test.go +++ b/syncapi/syncapi_test.go @@ -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)