diff --git a/CHANGELOG.md b/CHANGELOG.md index a661a307740..71483d456f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Bug Fixes +* [#11796](https://github.com/cosmos/cosmos-sdk/pull/11796) Handle EOF error case in `readLineFromBuf`, which allows successful reading of passphrases from STDIN. * [\#11772](https://github.com/cosmos/cosmos-sdk/pull/11772) Limit types.Dec length to avoid overflow. ## [v0.45.4](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.45.4) - 2022-04-25 diff --git a/client/input/input_test.go b/client/input/input_test.go index f28a9c3905a..9e85eb256a2 100644 --- a/client/input/input_test.go +++ b/client/input/input_test.go @@ -43,7 +43,7 @@ func TestReadLineFromBuf(t *testing.T) { require.ErrorIs(t, err, io.EOF) }) - t.Run("it returns the error if it's not EOF regardless if it read something or not", func(t *testing.T) { + t.Run("it returns the error if it's not EOF regardles if it read something or not", func(t *testing.T) { expectedErr := errors.New("oh no") fr.fnc = func(p []byte) (int, error) { return copy(p, []byte("hello")), expectedErr @@ -53,4 +53,5 @@ func TestReadLineFromBuf(t *testing.T) { _, err := readLineFromBuf(buf) require.ErrorIs(t, err, expectedErr) }) + }