Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Nov 19, 2024
1 parent 96c493a commit b2952ce
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
11 changes: 6 additions & 5 deletions block/submit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,12 @@ func TestSubmissionByTime(t *testing.T) {

// Init manager with empty blocks feature enabled
managerConfig := config.BlockManagerConfig{
BlockTime: blockTime,
MaxIdleTime: 0,
BatchSkew: 10,
BatchSubmitTime: submitTimeout,
BatchSubmitBytes: 1000,
BlockTime: blockTime,
MaxIdleTime: 0,
BatchSkew: 10,
BatchSubmitTime: submitTimeout,
BatchSubmitBytes: 1000,
SequencerSetUpdateInterval: config.DefaultSequencerSetUpdateInterval,
}

manager, err := testutil.GetManager(managerConfig, nil, 1, 1, 0, proxyApp, nil)
Expand Down
27 changes: 15 additions & 12 deletions rpc/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -854,10 +854,11 @@ func TestValidatorSetHandling(t *testing.T) {
BlockSyncRequestIntervalTime: 30 * time.Second,
},
BlockManagerConfig: config.BlockManagerConfig{
BlockTime: 10 * time.Millisecond,
BatchSubmitTime: 60 * time.Second,
BatchSubmitBytes: 1000,
BatchSkew: 10,
BlockTime: 10 * time.Millisecond,
BatchSubmitTime: 60 * time.Second,
BatchSubmitBytes: 1000,
BatchSkew: 10,
SequencerSetUpdateInterval: config.DefaultSequencerSetUpdateInterval,
},
SettlementConfig: settlement.Config{
ProposerPubKey: hex.EncodeToString(proposerPubKeyBytes),
Expand Down Expand Up @@ -1123,10 +1124,11 @@ func TestMempool2Nodes(t *testing.T) {
BlockSyncRequestIntervalTime: 30 * time.Second,
},
BlockManagerConfig: config.BlockManagerConfig{
BlockTime: 100 * time.Millisecond,
BatchSubmitTime: 60 * time.Second,
BatchSubmitBytes: 1000,
BatchSkew: 10,
BlockTime: 100 * time.Millisecond,
BatchSubmitTime: 60 * time.Second,
BatchSubmitBytes: 1000,
BatchSkew: 10,
SequencerSetUpdateInterval: config.DefaultSequencerSetUpdateInterval,
},
MempoolConfig: *tmcfg.DefaultMempoolConfig(),
}, key1, signingKey1, proxy.NewLocalClientCreator(app), genesis, "", log.TestingLogger(), mempool.NopMetrics())
Expand All @@ -1139,10 +1141,11 @@ func TestMempool2Nodes(t *testing.T) {
ProposerPubKey: hex.EncodeToString(proposerPK),
},
BlockManagerConfig: config.BlockManagerConfig{
BlockTime: 100 * time.Millisecond,
BatchSubmitTime: 60 * time.Second,
BatchSubmitBytes: 1000,
BatchSkew: 10,
BlockTime: 100 * time.Millisecond,
BatchSubmitTime: 60 * time.Second,
BatchSubmitBytes: 1000,
BatchSkew: 10,
SequencerSetUpdateInterval: config.DefaultSequencerSetUpdateInterval,
},
P2PConfig: config.P2PConfig{
ListenAddress: "/ip4/127.0.0.1/tcp/9002",
Expand Down
11 changes: 6 additions & 5 deletions rpc/json/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,12 @@ func getRPC(t *testing.T) (*tmmocks.MockApplication, *client.Client) {
config := config.NodeConfig{
SettlementLayer: "mock",
BlockManagerConfig: config.BlockManagerConfig{
BlockTime: 1 * time.Second,
MaxIdleTime: 0,
BatchSkew: 10,
BatchSubmitTime: 30 * time.Minute,
BatchSubmitBytes: 1000,
BlockTime: 1 * time.Second,
MaxIdleTime: 0,
BatchSkew: 10,
BatchSubmitTime: 30 * time.Minute,
BatchSubmitBytes: 1000,
SequencerSetUpdateInterval: config.DefaultSequencerSetUpdateInterval,
},
SettlementConfig: settlement.Config{
ProposerPubKey: hex.EncodeToString(proposerPubKeyBytes),
Expand Down

0 comments on commit b2952ce

Please sign in to comment.