Skip to content

Commit

Permalink
Merge pull request #6165 from multiversx/fix-long-tests-sovereign
Browse files Browse the repository at this point in the history
Fix long tests for Sovereign
  • Loading branch information
axenteoctavian committed May 15, 2024
2 parents 3552ab2 + 6545a95 commit b551dd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion integrationTests/testProcessorNode.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,15 @@ func newBaseTestProcessorNode(args ArgTestProcessorNode) *TestProcessorNode {

logsProcessor, _ := transactionLog.NewTxLogProcessor(transactionLog.ArgTxLogProcessor{Marshalizer: TestMarshalizer})

args.RunTypeComponents = components.GetRunTypeComponentsWithCoreComp(&mock.CoreComponentsStub{
rtc := components.GetRunTypeComponentsWithCoreComp(&mock.CoreComponentsStub{
HasherField: TestHasher,
InternalMarshalizerField: TestMarshalizer,
EnableEpochsHandlerField: enableEpochsHandler,
AddressPubKeyConverterField: &testscommon.PubkeyConverterStub{},
})
runTypeComponents := components.GetRunTypeComponentsStub(rtc)
runTypeComponents.AccountParser = &genesisMocks.AccountsParserStub{}
args.RunTypeComponents = runTypeComponents

tpn := &TestProcessorNode{
ShardCoordinator: shardCoordinator,
Expand Down
8 changes: 4 additions & 4 deletions testscommon/generalConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ func GetGeneralConfig() config.Config {
Capacity: 1000,
},
DB: config.DBConfig{
FilePath: "ExtendedShardHeaderStorage",
Type: "LvlDBSerial",
FilePath: AddTimestampSuffix("ExtendedShardHeaderStorage"),
Type: string(storageunit.MemoryDB),
BatchDelaySeconds: 5,
MaxBatchSize: 100,
MaxOpenFiles: 10,
Expand All @@ -461,8 +461,8 @@ func GetGeneralConfig() config.Config {
Capacity: 1000,
},
DB: config.DBConfig{
FilePath: "ExtendedShardHdrNonceHashStorage",
Type: "LvlDBSerial",
FilePath: AddTimestampSuffix("ExtendedShardHdrNonceHashStorage"),
Type: string(storageunit.MemoryDB),
BatchDelaySeconds: 5,
MaxBatchSize: 100,
MaxOpenFiles: 10,
Expand Down

0 comments on commit b551dd7

Please sign in to comment.