From d0f6cc6d405fbce4332b5654e60bd6514ee79649 Mon Sep 17 00:00:00 2001 From: luchenhan <168071714+luchenhan@users.noreply.github.com> Date: Mon, 29 Apr 2024 20:14:40 +0800 Subject: [PATCH] chore: fix function names in comment (#20210) Signed-off-by: luchenhan --- testutil/ioutil.go | 2 +- tools/cosmovisor/process_test.go | 4 ++-- types/context.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testutil/ioutil.go b/testutil/ioutil.go index 4413c16e21..e786dd4fba 100644 --- a/testutil/ioutil.go +++ b/testutil/ioutil.go @@ -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("") diff --git a/tools/cosmovisor/process_test.go b/tools/cosmovisor/process_test.go index 2ecea4cb78..3169ba3e30 100644 --- a/tools/cosmovisor/process_test.go +++ b/tools/cosmovisor/process_test.go @@ -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): diff --git a/types/context.go b/types/context.go index 2212301e16..33ab2f9c6c 100644 --- a/types/context.go +++ b/types/context.go @@ -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,