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:
commit
20c758324f
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue