1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-10 10:00:46 +09:00

Merge pull request #1312 from anyproto/fix-offloder-tests

Files: fix tests
This commit is contained in:
Sergey 2024-06-13 12:27:40 +02:00 committed by GitHub
commit 20c758324f
Signed by: github
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -22,6 +22,7 @@ import (
"github.com/anyproto/anytype-heart/core/domain"
"github.com/anyproto/anytype-heart/core/event/mock_event"
"github.com/anyproto/anytype-heart/core/files"
"github.com/anyproto/anytype-heart/core/files/fileoffloader"
"github.com/anyproto/anytype-heart/core/filestorage"
"github.com/anyproto/anytype-heart/core/filestorage/filesync"
"github.com/anyproto/anytype-heart/core/filestorage/rpcstore"
@ -98,6 +99,7 @@ func newFixture(t *testing.T) *fixture {
a.Register(objectCreator)
a.Register(svc)
a.Register(testutil.PrepareMock(ctx, a, spaceIdResolver))
a.Register(fileoffloader.New())
err = a.Start(ctx)
require.NoError(t, err)

View file

@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/anyproto/anytype-heart/core/event/mock_event"
"github.com/anyproto/anytype-heart/core/files"
"github.com/anyproto/anytype-heart/core/files/fileoffloader"
"github.com/anyproto/anytype-heart/core/filestorage"
"github.com/anyproto/anytype-heart/core/filestorage/filesync"
"github.com/anyproto/anytype-heart/core/filestorage/rpcstore"
@ -49,7 +49,7 @@ func newFixture(t *testing.T) *fixture {
a.Register(rpcstore.NewInMemoryService(rpcStore))
a.Register(fileservice.New())
a.Register(filesync.New())
a.Register(files.New())
a.Register(fileoffloader.New())
err = a.Start(ctx)
require.NoError(t, err)