Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: delete the log output from test #234

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions app/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,20 @@ func TestMakeEncodingConfig_RegisterInterfaces(t *testing.T) {
var count1 int
for interfaceNames.Next() {
count1++
t.Log(interfaceNames.Key())
}
assert.Equal(t, 32, count1)

interfaceImpls := interfaceRegistry.Field(1).MapRange()
var count2 int
for interfaceImpls.Next() {
count2++
t.Log(interfaceImpls.Value())
}
assert.Equal(t, 32, count2)

typeURLMap := interfaceRegistry.Field(2).MapRange()
var count3 int
for typeURLMap.Next() {
count3++
t.Log(typeURLMap.Key())
}
assert.Equal(t, 264, count3)

Expand All @@ -54,7 +51,6 @@ func TestMakeEncodingConfig_RegisterInterfaces(t *testing.T) {
assert.NoError(t, err)

if _, ok := resolvedMsg.(govProposalMsg); ok {
t.Log(len(govMsg), implementation)
govMsg = append(govMsg, implementation)
}
}
Expand Down
1 change: 0 additions & 1 deletion app/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ func TestNewDefaultGenesisByDenom(t *testing.T) {
genAppStateStr, err := json.Marshal(genAppState)
assert.NoError(t, err)

t.Log(string(genAppStateStr))
assert.Equal(t, genesisData, string(genAppStateStr))
}
2 changes: 0 additions & 2 deletions app/keepers/keepers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ func checkStructField(t *testing.T, valueOf reflect.Value, name string) {
if valueOfField.Type().String() == "types.EvmHooks" {
continue
}
t.Log("-> hooks: ", valueOfField.Type(), valueOfField.Kind())
assert.False(t, valueOfField.IsNil(), typeOfField.Name)
}

Expand All @@ -108,7 +107,6 @@ func checkStructField(t *testing.T, valueOf reflect.Value, name string) {
}
assert.False(t, valueOfField.IsNil(), typeOfField.Name)
}
t.Log("-> struct: ", valueOf.Type(), typeOfField.Name)
checkStructField(t, valueOfField, typeOfField.Name)
}
}
2 changes: 0 additions & 2 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,6 @@ func (suite *rpcTestSuite) TestClient_WithBlockHeight() {
for _, client := range clients {
balances, err := client.QueryBalances(sdk.AccAddress(nextValKey.PubKey().Address().Bytes()).String())
suite.NoError(err)
suite.T().Log(balances)
suite.True(balances.IsAllPositive())

if rpc, ok := client.(*jsonrpc.NodeRPC); ok {
Expand All @@ -591,7 +590,6 @@ func (suite *rpcTestSuite) TestClient_WithBlockHeight() {

balances, err = client.QueryBalances(sdk.AccAddress(nextValKey.PubKey().Address().Bytes()).String())
suite.NoError(err)
suite.T().Log(balances)
suite.False(balances.IsAllPositive())
}
}
Expand Down
4 changes: 1 addition & 3 deletions client/grpc/grpc_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ func TestClient_GetChainId(t *testing.T) {
assert.NoError(t, err)

assert.NotNil(t, account.GetPubKey())
pubKey, err := types.NewAnyWithValue(&ethsecp256k1.PubKey{Key: account.GetPubKey().Bytes()})
_, err = types.NewAnyWithValue(&ethsecp256k1.PubKey{Key: account.GetPubKey().Bytes()})
assert.NoError(t, err)
t.Log(pubKey)
t.Log(account)
}
39 changes: 0 additions & 39 deletions client/jsonrpc/rpc_client_test.go

This file was deleted.

24 changes: 11 additions & 13 deletions docs/swagger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,17 @@ func TestSwaggerConfig(t *testing.T) {
}
}
}
for k := range route {
t.Log("ignore", k)
// ignore routes:
// 1. other/v1/gas_price
// 2. fx/gravity/v1
// 3. fx/other/gas_price
// 4. fx/base/v1
// 5. fx/ibc/applications
// 6. ibc/core/channel/v1
// 7. ibc/core/client/v1
// 8. ibc/core/connection/v1
// 9. cosmos/gov/v1beta1
}

// ignore routes:
// 1. other/v1/gas_price
// 2. fx/gravity/v1
// 3. fx/other/gas_price
// 4. fx/base/v1
// 5. fx/ibc/applications
// 6. ibc/core/channel/v1
// 7. ibc/core/client/v1
// 8. ibc/core/connection/v1
// 9. cosmos/gov/v1beta1
assert.Equal(t, ignoreLen, len(route))
assert.Equal(t, 9, len(route))
}
Expand Down
1 change: 0 additions & 1 deletion tests/erc20_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ func (suite *IntegrationTest) ERC20TokenERC20Test() {
symbol := suite.evm.Symbol(proxy)
suite.erc20.CheckRegisterCoin(strings.ToLower(symbol))
metadata := suite.GetMetadata(strings.ToLower(symbol))
suite.T().Log("metadata", metadata.String())

tokenPair := suite.erc20.TokenPair(metadata.Base)
suite.Equal(tokenPair.Denom, metadata.Base)
Expand Down
2 changes: 0 additions & 2 deletions tests/evm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,6 @@ func (suite *IntegrationTest) EVMWeb3Test() {
results := method.Func.Call(params)
for i := 0; i < len(results); i++ {
if i == 0 && tt.wantRes[i] == nil {
// marshal, _ := json.Marshal(results[i].Interface())
// suite.T().Log(i, tt.name, string(marshal))
continue
}
suite.EqualValues(
Expand Down
39 changes: 0 additions & 39 deletions tests/store/prefix_test.go

This file was deleted.

1 change: 0 additions & 1 deletion x/crosschain/keeper/bridge_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func (suite *KeeperTestSuite) TestKeeper_BridgeToken() {
suite.Keeper().IterateBridgeTokenToDenom(suite.ctx, func(bt *types.BridgeToken) bool {
suite.Equal(bt.Token, tokenContract)
suite.Equal(bt.Denom, denom)
suite.T().Log(bt.Token, bt.Denom)
return false
})
}
1 change: 0 additions & 1 deletion x/crosschain/keeper/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ func (suite *KeeperTestSuite) TestBatchAndTxImportExport() {
suite.Require().NoError(err)
suite.Require().EqualValues(100, len(batch.Transactions))
suite.Require().EqualValues(50+i, batch.Block)
// suite.T().Log(i, batch.BatchTimeout, suite.chainName)
if suite.chainName == ethtypes.ModuleName {
suite.Require().True(batch.BatchTimeout > 2800)
} else {
Expand Down
1 change: 0 additions & 1 deletion x/crosschain/types/msg_validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,6 @@ func TestMsgSendToFxClaim_ValidateBasic(t *testing.T) {
func TestMsgSendToExternal_ValidateBasic(t *testing.T) {
moduleName := getRandModule()
normalExternalAddress := helpers.GenerateAddressByModule(moduleName)
t.Logf("normal external address:%s", normalExternalAddress)
normalFxAddress := sdk.AccAddress(tmrand.Bytes(20)).String()
randomAddrPrefix := strings.ToLower(tmrand.Str(5))
errPrefixAddress, err := bech32.ConvertAndEncode(randomAddrPrefix, tmrand.Bytes(20))
Expand Down
1 change: 0 additions & 1 deletion x/staking/keeper/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,6 @@ func TestValidatorUpdateEvidence(t *testing.T) {

rpc := jsonrpc.NewNodeRPC(jsonrpc.NewClient("http://localhost:26657"))
key := privval.LoadFilePVEmptyState(keyFilePath, "")
t.Log("address:", key.GetAddress().String())

// val power
valResp, err := rpc.Validators(height, 1, 100)
Expand Down
Loading