diff --git a/commonspace/deletion_test.go b/commonspace/deletion_test.go index 8043e754..27ff2b0f 100644 --- a/commonspace/deletion_test.go +++ b/commonspace/deletion_test.go @@ -52,7 +52,7 @@ func TestSpaceDeleteIds(t *testing.T) { acc := fx.account.Account() rk := crypto.NewAES() ctx := context.Background() - totalObjs := 3000 + totalObjs := 1500 // creating space sp, err := fx.spaceService.CreateSpace(ctx, SpaceCreatePayload{ @@ -126,7 +126,7 @@ func TestSpaceDeleteIdsIncorrectSnapshot(t *testing.T) { acc := fx.account.Account() rk := crypto.NewAES() ctx := context.Background() - totalObjs := 3000 + totalObjs := 1500 partialObjs := 300 // creating space @@ -209,7 +209,7 @@ func TestSpaceDeleteIdsMarkDeleted(t *testing.T) { acc := fx.account.Account() rk := crypto.NewAES() ctx := context.Background() - totalObjs := 3000 + totalObjs := 1500 // creating space sp, err := fx.spaceService.CreateSpace(ctx, SpaceCreatePayload{ diff --git a/commonspace/spaceutils_test.go b/commonspace/spaceutils_test.go index 04ff0f65..62371bbd 100644 --- a/commonspace/spaceutils_test.go +++ b/commonspace/spaceutils_test.go @@ -32,6 +32,10 @@ type mockConf struct { configuration nodeconf.Configuration } +func (m *mockConf) NetworkCompatibilityStatus() nodeconf.NetworkCompatibilityStatus { + return nodeconf.NetworkCompatibilityStatusOk +} + func (m *mockConf) Init(a *app.App) (err error) { accountKeys := a.MustComponent(accountService.CName).(accountService.Service).Account() networkId := accountKeys.SignKey.GetPublic().Network() @@ -63,10 +67,6 @@ func (m *mockConf) Close(ctx context.Context) (err error) { return nil } -func newMockConf() *mockConf { - return &mockConf{} -} - func (m *mockConf) Id() string { return m.id } @@ -297,7 +297,7 @@ func newFixture(t *testing.T) *spaceFixture { config: &mockConfig{}, app: &app.App{}, account: &accounttest.AccountTestService{}, - configurationService: newMockConf(), + configurationService: &mockConf{}, storageProvider: spacestorage.NewInMemorySpaceStorageProvider(), peermanagerProvider: &mockPeerManagerProvider{}, treeManager: &mockTreeManager{},