From dfd910269f36b7b7185220f56d0c1000013b3405 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Mon, 6 Mar 2023 12:25:11 +0100 Subject: [PATCH] Use CreateBaseDendrite instead of Base() --- syncapi/syncapi_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)