This commit is contained in:
mcrakhman 2023-05-23 12:15:54 +02:00 committed by Mikhail Iudin
parent 24395ec7bf
commit f005c82bf5
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0
2 changed files with 8 additions and 8 deletions

View File

@ -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{

View File

@ -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{},