Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Sep 6, 2024
1 parent 77aac23 commit 7ed416e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 31 deletions.
12 changes: 4 additions & 8 deletions block/production_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ func TestCreateEmptyBlocksEnableDisable(t *testing.T) {
RollappConsensusParamUpdates: &abci.RollappConsensusParams{
Da: "mock",
Version: version.Commit,
Block: &abci.BlockParams{
MaxBytes: 500000,
},
},
ConsensusParamUpdates: &abci.ConsensusParams{
Block: &abci.BlockParams{
MaxGas: 40000000,
MaxGas: 40000000,
MaxBytes: 500000,
},
},
})
Expand Down Expand Up @@ -207,13 +205,11 @@ func TestStopBlockProduction(t *testing.T) {
RollappConsensusParamUpdates: &abci.RollappConsensusParams{
Da: "mock",
Version: version.Commit,
Block: &abci.BlockParams{
MaxBytes: 500000,
},
},
ConsensusParamUpdates: &abci.ConsensusParams{
Block: &abci.BlockParams{
MaxGas: 40000000,
MaxGas: 40000000,
MaxBytes: 500000,
},
},
})
Expand Down
24 changes: 8 additions & 16 deletions block/submit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@ func TestBatchSubmissionHappyFlow(t *testing.T) {
RollappConsensusParamUpdates: &abci.RollappConsensusParams{
Da: "mock",
Version: version.Commit,
Block: &abci.BlockParams{
MaxBytes: 500000,
},
},
ConsensusParamUpdates: &abci.ConsensusParams{
Block: &abci.BlockParams{
MaxGas: 40000000,
MaxGas: 40000000,
MaxBytes: 500000,
},
},
})
Expand Down Expand Up @@ -155,13 +153,11 @@ func TestBatchSubmissionFailedSubmission(t *testing.T) {
RollappConsensusParamUpdates: &abci.RollappConsensusParams{
Da: "mock",
Version: version.Commit,
Block: &abci.BlockParams{
MaxBytes: 500000,
},
},
ConsensusParamUpdates: &abci.ConsensusParams{
Block: &abci.BlockParams{
MaxGas: 40000000,
MaxGas: 40000000,
MaxBytes: 500000,
},
},
})
Expand Down Expand Up @@ -228,13 +224,11 @@ func TestSubmissionByTime(t *testing.T) {
RollappConsensusParamUpdates: &abci.RollappConsensusParams{
Da: "mock",
Version: version.Commit,
Block: &abci.BlockParams{
MaxBytes: 500000,
},
},
ConsensusParamUpdates: &abci.ConsensusParams{
Block: &abci.BlockParams{
MaxGas: 40000000,
MaxGas: 40000000,
MaxBytes: 500000,
},
},
})
Expand Down Expand Up @@ -313,13 +307,11 @@ func TestSubmissionByBatchSize(t *testing.T) {
RollappConsensusParamUpdates: &abci.RollappConsensusParams{
Da: "mock",
Version: version.Commit,
Block: &abci.BlockParams{
MaxBytes: 500000,
},
},
ConsensusParamUpdates: &abci.ConsensusParams{
Block: &abci.BlockParams{
MaxGas: 40000000,
MaxGas: 40000000,
MaxBytes: 500000,
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ replace (
github.com/evmos/evmos/v12 => github.com/dymensionxyz/evmos/v12 v12.1.6-dymension-v0.3
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.2-alpha.regen.4
github.com/gorilla/rpc => github.com/dymensionxyz/rpc v1.3.1
github.com/tendermint/tendermint => github.com/dymensionxyz/cometbft v0.34.29-0.20240827102743-fafae27f8527
github.com/tendermint/tendermint => github.com/dymensionxyz/cometbft v0.34.29-0.20240906063629-699d43f46e59
)

replace github.com/osmosis-labs/osmosis/v15 => github.com/dymensionxyz/osmosis/v15 v15.2.0-dymension-v1.1.2
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkp
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/dvsekhvalnov/jose2go v1.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM=
github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU=
github.com/dymensionxyz/cometbft v0.34.29-0.20240827102743-fafae27f8527 h1:ueS52CpkFmlu2indSCa78e4WkjiEZuhy2gBTkFI5F20=
github.com/dymensionxyz/cometbft v0.34.29-0.20240827102743-fafae27f8527/go.mod h1:L9shMfbkZ8B+7JlwANEr+NZbBcn+hBpwdbeYvA5rLCw=
github.com/dymensionxyz/cometbft v0.34.29-0.20240906063629-699d43f46e59 h1:N1G3up5/e2W0MGK0VrvQ4oCBCmWxchbTKBNosJ48LTM=
github.com/dymensionxyz/cometbft v0.34.29-0.20240906063629-699d43f46e59/go.mod h1:L9shMfbkZ8B+7JlwANEr+NZbBcn+hBpwdbeYvA5rLCw=
github.com/dymensionxyz/cosmosclient v0.4.2-beta.0.20240821081230-b4018b2bac13 h1:u5yeve5jZR6TdRjjR+vYT/8PWKbhwCZxUmAu+/Tnxyg=
github.com/dymensionxyz/cosmosclient v0.4.2-beta.0.20240821081230-b4018b2bac13/go.mod h1:jabDQYXrccscSE0fXkh7eQFYPWJCRiuWKonFGObVq6s=
github.com/dymensionxyz/dymension/v3 v3.1.0-rc03.0.20240411195658-f7cd96f53b56 h1:cmpJYdRviuUfmlJdHrcAND8Jd6JIY4rp63bWAQzPr54=
Expand Down
6 changes: 2 additions & 4 deletions rpc/json/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,11 @@ func getRPC(t *testing.T) (*tmmocks.MockApplication, *client.Client) {
RollappConsensusParamUpdates: &abci.RollappConsensusParams{
Da: "mock",
Version: version.Commit,
Block: &abci.BlockParams{
MaxBytes: 100,
},
},
ConsensusParamUpdates: &abci.ConsensusParams{
Block: &abci.BlockParams{
MaxGas: 100,
MaxGas: 100,
MaxBytes: 100,
},
},
})
Expand Down

0 comments on commit 7ed416e

Please sign in to comment.