fix: typos across the codebase (#25022)
This commit is contained in:
parent
ea6d5f1149
commit
ea11dd1918
@ -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()
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -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{
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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())
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user