From c042fa4994c0a9293c660e8016c5f16046b338c4 Mon Sep 17 00:00:00 2001 From: zsystm Date: Mon, 2 Sep 2024 14:24:22 +0900 Subject: [PATCH] apply pr comment: remove tc TrimSpace --- client/x/evmstaking/types/withdraw_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/x/evmstaking/types/withdraw_test.go b/client/x/evmstaking/types/withdraw_test.go index a0e3e4e1..16b15cf3 100644 --- a/client/x/evmstaking/types/withdraw_test.go +++ b/client/x/evmstaking/types/withdraw_test.go @@ -4,7 +4,6 @@ import ( "fmt" "math" "math/big" - "strings" "testing" "github.com/cosmos/cosmos-sdk/types/module/testutil" @@ -85,11 +84,6 @@ func (suite *WithdrawTestSuite) TestWithdrawalsString() { suite.delAddr, suite.valAddr, suite.evmAddr.String(), ) require.Equal(expectedString, ws.String()) - - // Test with spaces, it should trim the spaces - stringWithSpaces := " " + ws.String() + " " // add leading and trailing spaces - trimmedString := strings.TrimSpace(stringWithSpaces) - require.Equal(expectedString, trimmedString, "Withdrawals.String() should trim spaces") } func (suite *WithdrawTestSuite) TestWithdrawalsLen() {