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

GO-2371 Consistent names and fix tests

This commit is contained in:
mcrakhman 2023-11-13 20:18:36 +01:00
parent 7e3906098a
commit 0420a4b4aa
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
5 changed files with 70 additions and 27 deletions

View file

@ -109,10 +109,10 @@ func (fx *fixture) expectRun(newAccount bool) {
}
// startLoad
fx.techSpace.EXPECT().SpaceViewExists(mock.Anything, testPersonalSpaceID).Return(true, nil)
fx.techSpace.EXPECT().SetInfo(mock.Anything, mock.Anything).Return(nil)
fx.techSpace.EXPECT().SetLocalInfo(mock.Anything, mock.Anything).Return(nil)
// wait load
fx.spaceCore.EXPECT().Get(mock.Anything, testPersonalSpaceID).Return(&spacecore.AnySpace{Space: fx.personalSpace}, nil)
fx.techSpace.EXPECT().SetInfo(mock.Anything, spaceinfo.SpaceInfo{
fx.techSpace.EXPECT().SetLocalInfo(mock.Anything, spaceinfo.SpaceLocalInfo{
SpaceID: testPersonalSpaceID,
LocalStatus: spaceinfo.LocalStatusOk,
RemoteStatus: spaceinfo.RemoteStatusUnknown,