From 1061c243d59c4d417196d3438396865e2703f39b Mon Sep 17 00:00:00 2001 From: Rootul Patel Date: Wed, 24 Apr 2024 11:39:06 -0400 Subject: [PATCH] fix: blobstream tests by using v1 --- app/test/qgb_rpc_test.go | 4 +++- x/blobstream/client/suite_test.go | 6 ++---- x/blobstream/integration_test.go | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/test/qgb_rpc_test.go b/app/test/qgb_rpc_test.go index 7fd42be5dd..33bd9756ad 100644 --- a/app/test/qgb_rpc_test.go +++ b/app/test/qgb_rpc_test.go @@ -19,7 +19,9 @@ func TestBlobstreamRPCQueries(t *testing.T) { t.Skip("skipping blobstream integration test in short mode.") } ecfg := encoding.MakeConfig(app.ModuleEncodingRegisters...) - cfg := testnode.DefaultConfig().WithModifiers(genesis.SetDataCommitmentWindow(ecfg.Codec, 100)) + cfg := testnode.DefaultConfig(). + WithModifiers(genesis.SetDataCommitmentWindow(ecfg.Codec, 100)). + WithConsensusParams(app.DefaultInitialConsensusParams()) cctx, _, _ := testnode.NewNetwork(t, cfg) diff --git a/x/blobstream/client/suite_test.go b/x/blobstream/client/suite_test.go index 90ca9c3e35..78898ac3f7 100644 --- a/x/blobstream/client/suite_test.go +++ b/x/blobstream/client/suite_test.go @@ -3,6 +3,7 @@ package client_test import ( "testing" + "github.com/celestiaorg/celestia-app/v2/app" "github.com/celestiaorg/celestia-app/v2/test/util/testnode" "github.com/stretchr/testify/suite" tmrand "github.com/tendermint/tendermint/libs/rand" @@ -19,7 +20,7 @@ func (s *CLITestSuite) SetupSuite() { s.T().Skip("skipping Blobstream CLI tests in short mode.") } - cfg := testnode.DefaultConfig() + cfg := testnode.DefaultConfig().WithConsensusParams(app.DefaultInitialConsensusParams()) numAccounts := 120 accounts := make([]string, numAccounts) @@ -27,9 +28,6 @@ func (s *CLITestSuite) SetupSuite() { accounts[i] = tmrand.Str(20) } cfg.WithFundedAccounts(accounts...) - consensusParams := testnode.DefaultConsensusParams() - consensusParams.Version.AppVersion = 1 - cfg.WithConsensusParams(consensusParams) s.cfg = cfg s.cctx, _, _ = testnode.NewNetwork(s.T(), cfg) diff --git a/x/blobstream/integration_test.go b/x/blobstream/integration_test.go index 3f2ef59b83..d49e2728b7 100644 --- a/x/blobstream/integration_test.go +++ b/x/blobstream/integration_test.go @@ -39,9 +39,9 @@ func (s *BlobstreamIntegrationSuite) SetupSuite() { s.accounts = []string{"jimmy"} - consensusParams := app.DefaultConsensusParams() - consensusParams.Version.AppVersion = 1 - cfg := testnode.DefaultConfig().WithFundedAccounts(s.accounts...).WithConsensusParams(consensusParams) + cfg := testnode.DefaultConfig(). + WithFundedAccounts(s.accounts...). + WithConsensusParams(app.DefaultInitialConsensusParams()) cctx, _, _ := testnode.NewNetwork(t, cfg) s.ecfg = encoding.MakeConfig(app.ModuleEncodingRegisters...) s.cctx = cctx