diff --git a/store/snapshots/helpers_test.go b/store/snapshots/helpers_test.go index 5dc4af67ce..f35ea6babf 100644 --- a/store/snapshots/helpers_test.go +++ b/store/snapshots/helpers_test.go @@ -344,7 +344,7 @@ func (s *extSnapshotter) RestoreExtension(_ uint64, _ uint32, payloadReader snap return nil } -// GetTempDir returns a writable temporary director for the test to use. +// GetTempDir returns a writable temporary directory for the test to use. func GetTempDir(tb testing.TB) string { tb.Helper() // os.MkDir() is used instead of testing.T.TempDir() diff --git a/store/snapshots/manager.go b/store/snapshots/manager.go index dfcdd3cc7a..19ef64eab0 100644 --- a/store/snapshots/manager.go +++ b/store/snapshots/manager.go @@ -70,7 +70,7 @@ const ( snapshotMaxItemSize = int(64e6) // SDK has no key/value size limit, so we set an arbitrary limit ) -var ErrOptsZeroSnapshotInterval = errors.New("snaphot-interval must not be 0") +var ErrOptsZeroSnapshotInterval = errors.New("snapshot-interval must not be 0") // NewManager creates a new manager. func NewManager(store *Store, opts types.SnapshotOptions, multistore types.Snapshotter, extensions map[string]types.ExtensionSnapshotter, logger log.Logger) *Manager { diff --git a/store/types/codec.go b/store/types/codec.go index 3b5203747c..5f941f2522 100644 --- a/store/types/codec.go +++ b/store/types/codec.go @@ -7,7 +7,7 @@ import ( proto "github.com/cosmos/gogoproto/proto" ) -// Codec defines a interface needed for the store package to marshal data +// Codec defines an interface needed for the store package to marshal data type Codec interface { // Marshal returns binary encoding of v. Marshal(proto.Message) ([]byte, error) diff --git a/store/types/streaming.go b/store/types/streaming.go index f7786151c8..6dec45f3ba 100644 --- a/store/types/streaming.go +++ b/store/types/streaming.go @@ -13,7 +13,7 @@ import ( type ABCIListener interface { // ListenFinalizeBlock updates the streaming service with the latest FinalizeBlock messages ListenFinalizeBlock(ctx context.Context, req abci.FinalizeBlockRequest, res abci.FinalizeBlockResponse) error - // ListenCommit updates the steaming service with the latest Commit messages and state changes + // ListenCommit updates the streaming service with the latest Commit messages and state changes ListenCommit(ctx context.Context, res abci.CommitResponse, changeSet []*StoreKVPair) error } diff --git a/tests/e2e/auth/suite.go b/tests/e2e/auth/suite.go index 7cb65c1eb6..bc1149cbb4 100644 --- a/tests/e2e/auth/suite.go +++ b/tests/e2e/auth/suite.go @@ -1432,7 +1432,7 @@ func (s *E2ETestSuite) TestAuxSigner() { true, }, { - "no error with SIGN_MDOE_DIRECT_AUX mode and generate-only set (ignores generate-only)", + "no error with SIGN_MODE_DIRECT_AUX mode and generate-only set (ignores generate-only)", []string{ fmt.Sprintf("--%s=%s", flags.FlagSignMode, flags.SignModeDirectAux), fmt.Sprintf("--%s=true", flags.FlagGenerateOnly), @@ -1440,7 +1440,7 @@ func (s *E2ETestSuite) TestAuxSigner() { false, }, { - "no error with SIGN_MDOE_DIRECT_AUX mode and generate-only, tip flag set", + "no error with SIGN_MODE_DIRECT_AUX mode and generate-only, tip flag set", []string{ fmt.Sprintf("--%s=%s", flags.FlagSignMode, flags.SignModeDirectAux), fmt.Sprintf("--%s=true", flags.FlagGenerateOnly), diff --git a/tests/e2e/bank/grpc.go b/tests/e2e/bank/grpc.go index ed7c56e3d3..51fdc5b3c1 100644 --- a/tests/e2e/bank/grpc.go +++ b/tests/e2e/bank/grpc.go @@ -248,7 +248,7 @@ func (s *E2ETestSuite) TestBalancesGRPCHandler() { }, }, { - "gPRC account balance of a denom", + "gRPC account balance of a denom", fmt.Sprintf("%s/cosmos/bank/v1beta1/balances/%s/by_denom?denom=%s", baseURL, val.Address.String(), s.cfg.BondDenom), &types.QueryBalanceResponse{}, &types.QueryBalanceResponse{ @@ -259,7 +259,7 @@ func (s *E2ETestSuite) TestBalancesGRPCHandler() { }, }, { - "gPRC account balance of a bogus denom", + "gRPC account balance of a bogus denom", fmt.Sprintf("%s/cosmos/bank/v1beta1/balances/%s/by_denom?denom=foobar", baseURL, val.Address.String()), &types.QueryBalanceResponse{}, &types.QueryBalanceResponse{ diff --git a/tests/e2e/distribution/withdraw_all_suite.go b/tests/e2e/distribution/withdraw_all_suite.go index 72eaef2477..ac59ab6db8 100644 --- a/tests/e2e/distribution/withdraw_all_suite.go +++ b/tests/e2e/distribution/withdraw_all_suite.go @@ -53,7 +53,7 @@ func (s *WithdrawAllTestSuite) TearDownSuite() { } // TestNewWithdrawAllRewardsGenerateOnly requires multiple validators, if I add this test to `E2ETestSuite` by increasing -// `NumValidators` the existing tests are leading to non-determnism so created new suite for this test. +// `NumValidators` the existing tests are leading to non-determinism so created new suite for this test. func (s *WithdrawAllTestSuite) TestNewWithdrawAllRewardsGenerateOnly() { require := s.Require() val := s.network.Validators[0] diff --git a/tests/e2e/staking/suite.go b/tests/e2e/staking/suite.go index 72fd8f0075..06b68c6588 100644 --- a/tests/e2e/staking/suite.go +++ b/tests/e2e/staking/suite.go @@ -91,7 +91,6 @@ func (s *E2ETestSuite) SetupSuite() { fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync), ) s.Require().NoError(err) - s.Require().NoError(err) s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &txRes)) s.Require().Equal(uint32(0), txRes.Code) s.Require().NoError(s.network.WaitForNextBlock()) diff --git a/tests/integration/auth/client/cli/suite_test.go b/tests/integration/auth/client/cli/suite_test.go index 68101d44e7..7e9cc9aa65 100644 --- a/tests/integration/auth/client/cli/suite_test.go +++ b/tests/integration/auth/client/cli/suite_test.go @@ -1004,7 +1004,7 @@ func (s *CLITestSuite) TestAuxSigner() { true, }, { - "no error with SIGN_MDOE_DIRECT_AUX mode and generate-only set (ignores generate-only)", + "no error with SIGN_MODE_DIRECT_AUX mode and generate-only set (ignores generate-only)", []string{ fmt.Sprintf("--%s=%s", flags.FlagSignMode, flags.SignModeDirectAux), fmt.Sprintf("--%s=true", flags.FlagGenerateOnly), @@ -1012,7 +1012,7 @@ func (s *CLITestSuite) TestAuxSigner() { false, }, { - "no error with SIGN_MDOE_DIRECT_AUX mode and generate-only, tip flag set", + "no error with SIGN_MODE_DIRECT_AUX mode and generate-only, tip flag set", []string{ fmt.Sprintf("--%s=%s", flags.FlagSignMode, flags.SignModeDirectAux), fmt.Sprintf("--%s=true", flags.FlagGenerateOnly), diff --git a/tests/integration/gov/keeper/tally_test.go b/tests/integration/gov/keeper/tally_test.go index 2a3f1bca23..e570cd5f58 100644 --- a/tests/integration/gov/keeper/tally_test.go +++ b/tests/integration/gov/keeper/tally_test.go @@ -265,7 +265,7 @@ func TestTallyOnlyValidatorsNonVoter(t *testing.T) { assert.Assert(t, tallyResults.Equals(v1.EmptyTallyResult()) == false) } -func TestTallyDelgatorOverride(t *testing.T) { +func TestTallyDelegatorOverride(t *testing.T) { t.Parallel() f := initFixture(t) @@ -305,7 +305,7 @@ func TestTallyDelgatorOverride(t *testing.T) { assert.Assert(t, tallyResults.Equals(v1.EmptyTallyResult()) == false) } -func TestTallyDelgatorInherit(t *testing.T) { +func TestTallyDelegatorInherit(t *testing.T) { t.Parallel() f := initFixture(t) @@ -344,7 +344,7 @@ func TestTallyDelgatorInherit(t *testing.T) { assert.Assert(t, tallyResults.Equals(v1.EmptyTallyResult()) == false) } -func TestTallyDelgatorMultipleOverride(t *testing.T) { +func TestTallyDelegatorMultipleOverride(t *testing.T) { t.Parallel() f := initFixture(t) @@ -388,7 +388,7 @@ func TestTallyDelgatorMultipleOverride(t *testing.T) { assert.Assert(t, tallyResults.Equals(v1.EmptyTallyResult()) == false) } -func TestTallyDelgatorMultipleInherit(t *testing.T) { +func TestTallyDelegatorMultipleInherit(t *testing.T) { t.Parallel() f := initFixture(t)