This commit is contained in:
mcrakhman committed 2023-05-23 12:15:54 +02:00
1 parent 6fd7a894eb
commit 3cdb263066
2 files changed
+8 -8

No files matched your search

+3 -3
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{
+5 -5
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{},