chore: fix function names in comment (#20210)

Signed-off-by: luchenhan <hanluchen@aliyun.com>
This commit is contained in:
luchenhan 2024-04-29 20:14:40 +08:00 committed by GitHub
parent cb50b4caa2
commit d0f6cc6d40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ func ApplyMockIO(c *cobra.Command) (BufferReader, BufferWriter) {
return mockIn, mockOut
}
// ApplyMockIODiscardOutputs replaces a cobra.Command output and error streams with a dummy io.Writer.
// ApplyMockIODiscardOutErr replaces a cobra.Command output and error streams with a dummy io.Writer.
// Replaces and returns the io.Reader associated to the cobra.Command input stream.
func ApplyMockIODiscardOutErr(c *cobra.Command) BufferReader {
mockIn := strings.NewReader("")

View File

@ -257,7 +257,7 @@ func (s *processTestSuite) TestLaunchProcessWithDownloads() {
require.Equal(cfg.UpgradeBin("chain3"), currentBin)
}
// TestCustomPreupgrade will try running the script a few times and watch upgrades work properly
// TestLaunchProcessWithDownloadsAndMissingPreupgrade will try running the script a few times and watch upgrades work properly
// and args are passed through
func (s *processTestSuite) TestLaunchProcessWithDownloadsAndMissingPreupgrade() {
// test case upgrade path (binaries from testdata/download directory):
@ -293,7 +293,7 @@ func (s *processTestSuite) TestLaunchProcessWithDownloadsAndMissingPreupgrade()
require.ErrorIs(err, fs.ErrNotExist)
}
// TestCustomPreupgrade will try running the script a few times and watch upgrades work properly
// TestLaunchProcessWithDownloadsAndPreupgrade will try running the script a few times and watch upgrades work properly
// and args are passed through
func (s *processTestSuite) TestLaunchProcessWithDownloadsAndPreupgrade() {
// test case upgrade path (binaries from testdata/download directory):

View File

@ -411,7 +411,7 @@ func ToSDKEvidence(ev []abci.Misbehavior) []comet.Evidence {
return evidence
}
// ToSDKDecidedCommitInfo takes comet commit info and returns sdk commit info
// ToSDKCommitInfo takes comet commit info and returns sdk commit info
func ToSDKCommitInfo(commit abci.CommitInfo) comet.CommitInfo {
ci := comet.CommitInfo{
Round: commit.Round,