Fix TestPushNotificationRace

This commit is contained in:
Miguel de la Cruz
2023-03-21 18:51:32 +01:00
parent 39e761088c
commit 6d62dddf86

View File

@@ -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{