Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NagaTulasi committed Sep 18, 2024
1 parent 2152b61 commit c7af0fa
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 26 deletions.
3 changes: 0 additions & 3 deletions keeper/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func (s *TestSuite) TestPrepareProposal() {
}

func (s *TestSuite) TestProcessProposal() {

testCases := []struct {
name string
addmockTxs bool
Expand Down Expand Up @@ -87,7 +86,6 @@ func (s *TestSuite) getMockTx() []byte {
}

func (s *TestSuite) TestPreBlocker() {

testCases := []struct {
name string
req *abci.RequestFinalizeBlock
Expand Down Expand Up @@ -149,5 +147,4 @@ func (s *TestSuite) TestPreBlocker() {
s.Require().NoError(err)
})
}

}
1 change: 0 additions & 1 deletion keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,4 @@ func (s *TestSuite) SetupTest() {

s.proofofBlobProposerHandler = *keeper.NewProofOfBlobProposalHandler(&s.keeper,
prepareProposalHandler, processProposalHandler, s.voteExtensionHandler)

}
2 changes: 0 additions & 2 deletions keeper/query_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
)

func (s *TestSuite) TestSubmitBlobStatus() {

testCases := []struct {
name string

Expand All @@ -24,7 +23,6 @@ func (s *TestSuite) TestSubmitBlobStatus() {

for _, tc := range testCases {
s.Run(tc.name, func() {

err := store.UpdateBlobStatus(s.ctx, s.store, tc.status)
s.Require().NoError(err)

Expand Down
2 changes: 0 additions & 2 deletions keeper/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
)

func (s *TestSuite) TestSetBlobStatusPending() {

testCases := []struct {
name string
startHeight uint64
Expand Down Expand Up @@ -34,7 +33,6 @@ func (s *TestSuite) TestSetBlobStatusPending() {
}

func (s *TestSuite) TestSetBlobStatus() {

testCases := []struct {
name string
startHeight uint64
Expand Down
3 changes: 0 additions & 3 deletions keeper/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
)

func (s *TestSuite) TestCanUpdateStatusToPending() {

testCases := []struct {
name string
updateStatus bool
Expand Down Expand Up @@ -34,13 +33,11 @@ func (s *TestSuite) TestCanUpdateStatusToPending() {
res := store.CanUpdateStatusToPending(s.store)
s.False(res)
}

})
}
}

func (s *TestSuite) TestGetStatusFromStore() {

testCases := []struct {
name string
updateStatus bool
Expand Down
15 changes: 6 additions & 9 deletions network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ import (
"testing"
"time"

"github.com/cometbft/cometbft/node"
cmtclient "github.com/cometbft/cometbft/rpc/client"
dbm "github.com/cosmos/cosmos-db"
"github.com/spf13/cobra"
"golang.org/x/sync/errgroup"
"google.golang.org/grpc"

"github.com/cometbft/cometbft/node"
cmtclient "github.com/cometbft/cometbft/rpc/client"
dbm "github.com/cosmos/cosmos-db"

"cosmossdk.io/depinject"
"cosmossdk.io/log"
sdkmath "cosmossdk.io/math"
Expand All @@ -50,15 +51,11 @@ import (
"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
_ "github.com/cosmos/cosmos-sdk/x/auth" // import auth as a blank
_ "github.com/cosmos/cosmos-sdk/x/auth/tx/config" // import auth tx config as a blank

authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
_ "github.com/cosmos/cosmos-sdk/x/bank" // import bank as a blank
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
_ "github.com/cosmos/cosmos-sdk/x/consensus" // import consensus as a blank

"github.com/cosmos/cosmos-sdk/x/genutil"
_ "github.com/cosmos/cosmos-sdk/x/params" // import params as a blank
_ "github.com/cosmos/cosmos-sdk/x/staking" // import staking as a blank
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
)

Expand Down
4 changes: 2 additions & 2 deletions network/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"os"
"path/filepath"

"golang.org/x/sync/errgroup"

cmtcfg "github.com/cometbft/cometbft/config"
"github.com/cometbft/cometbft/node"
"github.com/cometbft/cometbft/p2p"
Expand All @@ -16,10 +18,8 @@ import (
"github.com/cometbft/cometbft/rpc/client/local"
cmttypes "github.com/cometbft/cometbft/types"
cmttime "github.com/cometbft/cometbft/types/time"
"golang.org/x/sync/errgroup"

"cosmossdk.io/log"

"github.com/cosmos/cosmos-sdk/server"
"github.com/cosmos/cosmos-sdk/server/api"
servergrpc "github.com/cosmos/cosmos-sdk/server/grpc"
Expand Down
3 changes: 0 additions & 3 deletions relayer/http_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import (
)

func (s *RelayerTestSuite) TestHTTPClientHandler_Get() {

mockServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

require.Equal(s.T(), "GET", r.Method)

fmt.Fprintln(w, `{"message": "GET request successful"}`)
Expand All @@ -33,7 +31,6 @@ func (s *RelayerTestSuite) TestHTTPClientHandler_GetError() {
}

func (s *RelayerTestSuite) TestPostRequest() {

server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
s.Require().Equal(http.MethodPost, r.Method)
s.Require().Equal("/post", r.URL.Path)
Expand Down
1 change: 0 additions & 1 deletion relayer/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,4 @@ func (s *RelayerTestSuite) SetupTest() {
s.httpHandler = *relayer.NewHTTPClientHandler()

s.relayer = &relayer.Relayer{}

}

0 comments on commit c7af0fa

Please sign in to comment.