From 6d62dddf8679e82b02e8ad9fe7513217eef5b4ee Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Tue, 21 Mar 2023 18:51:32 +0100 Subject: [PATCH] Fix TestPushNotificationRace --- server/channels/app/notification_push_test.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/server/channels/app/notification_push_test.go b/server/channels/app/notification_push_test.go index 8c42bdbbca..ed22c833eb 100644 --- a/server/channels/app/notification_push_test.go +++ b/server/channels/app/notification_push_test.go @@ -1445,9 +1445,13 @@ func TestPushNotificationRace(t *testing.T) { Router: mux.NewRouter(), } var err error - s.platform, err = platform.New(platform.ServiceConfig{ - ConfigStore: memoryStore, - }, platform.SetFileStore(&fmocks.FileBackend{})) + s.platform, err = platform.New( + platform.ServiceConfig{ + ConfigStore: memoryStore, + }, + platform.SetFileStore(&fmocks.FileBackend{}), + platform.StoreOverride(th.GetSqlStore()), + ) s.SetStore(mockStore) require.NoError(t, err) serviceMap := map[product.ServiceKey]any{