@@ -100,7 +100,6 @@ func TestSyncStatusUpdater_UpdateDetails(t *testing.T) {
100
100
sb := smarttest .New (objectId )
101
101
st := sb .Doc .(* state.State )
102
102
st .SetDetailAndBundledRelation (bundle .RelationKeyLayout , pbtypes .Int64 (int64 (model .ObjectType_basic )))
103
- st .SetDetailAndBundledRelation (bundle .RelationKeySpaceId , pbtypes .String ("spaceId" ))
104
103
err := apply (sb )
105
104
require .NoError (t , err )
106
105
@@ -167,7 +166,6 @@ func TestSyncStatusUpdater_UpdateDetails(t *testing.T) {
167
166
space .EXPECT ().DoCtx (mock .Anything , mock .Anything , mock .Anything ).Run (func (ctx context.Context , objectId string , apply func (smartblock.SmartBlock ) error ) {
168
167
sb := smarttest .New (objectId )
169
168
st := sb .Doc .(* state.State )
170
- st .SetDetailAndBundledRelation (bundle .RelationKeySpaceId , pbtypes .String ("spaceId" ))
171
169
st .SetDetailAndBundledRelation (bundle .RelationKeyLayout , pbtypes .Int64 (int64 (model .ObjectType_file )))
172
170
st .SetDetailAndBundledRelation (bundle .RelationKeyFileBackupStatus , pbtypes .Int64 (int64 (filesyncstatus .Limited )))
173
171
err := apply (sb )
@@ -197,7 +195,6 @@ func TestSyncStatusUpdater_UpdateDetails(t *testing.T) {
197
195
space .EXPECT ().DoCtx (mock .Anything , mock .Anything , mock .Anything ).Run (func (ctx context.Context , objectId string , apply func (smartblock.SmartBlock ) error ) {
198
196
sb := smarttest .New (objectId )
199
197
st := sb .Doc .(* state.State )
200
- st .SetDetailAndBundledRelation (bundle .RelationKeySpaceId , pbtypes .String ("spaceId" ))
201
198
st .SetDetailAndBundledRelation (bundle .RelationKeyLayout , pbtypes .Int64 (int64 (model .ObjectType_file )))
202
199
st .SetDetailAndBundledRelation (bundle .RelationKeyFileBackupStatus , pbtypes .Int64 (int64 (filesyncstatus .Synced )))
203
200
err := apply (sb )
@@ -249,7 +246,6 @@ func TestSyncStatusUpdater_UpdateSpaceDetails(t *testing.T) {
249
246
space .EXPECT ().DoCtx (mock .Anything , objectId , mock .Anything ).Run (func (ctx context.Context , objectId string , apply func (smartblock.SmartBlock ) error ) {
250
247
sb := smarttest .New (objectId )
251
248
st := sb .Doc .(* state.State )
252
- st .SetDetailAndBundledRelation (bundle .RelationKeySpaceId , pbtypes .String ("spaceId" ))
253
249
st .SetDetailAndBundledRelation (bundle .RelationKeyLayout , pbtypes .Int64 (int64 (model .ObjectType_basic )))
254
250
err := apply (sb )
255
251
require .NoError (t , err )
@@ -283,8 +279,7 @@ func TestSyncStatusUpdater_setSyncDetails(t *testing.T) {
283
279
// given
284
280
fx := newFixture (t )
285
281
sb := smarttest .New ("id" )
286
- st := sb .Doc .(* state.State )
287
- st .SetDetailAndBundledRelation (bundle .RelationKeySpaceId , pbtypes .String ("spaceId" ))
282
+
288
283
// when
289
284
err := fx .setSyncDetails (sb , domain .ObjectSyncStatusError , domain .SyncErrorNetworkError )
290
285
assert .Nil (t , err )
0 commit comments