Skip to content

Commit

Permalink
increase wait time for the first 100 gaia txs to reduce flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
misko9 committed Aug 23, 2024
1 parent e63dc09 commit 259d911
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 0 additions & 5 deletions examples/thorchain/chainspec_thorchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,6 @@ var (
"BIFROST_CHAINS_AVAX_BLOCK_SCANNER_MAX_GAS_LIMIT=80000",
"BIFROST_CHAINS_BSC_BLOCK_SCANNER_MAX_GAS_LIMIT=80000",

// enable bsc
//"BIFROST_CHAINS_BSC_DISABLED=false", // todo change to false once brought in
//"BIFROST_CHAINS_BSC_RPC_HOST: ${BSC_HOST:-http://binance-smart:8545}
//"BIFROST_CHAINS_BSC_BLOCK_SCANNER_RPC_HOST: ${BSC_HOST:-http://binance-smart:8545}

// set fixed gas rate for evm chains
"BIFROST_CHAINS_ETH_BLOCK_SCANNER_FIXED_GAS_RATE=30000000000", // 30 gwei
"BIFROST_CHAINS_AVAX_BLOCK_SCANNER_FIXED_GAS_RATE=100_000_000_000", // 100 navax
Expand Down
5 changes: 4 additions & 1 deletion examples/thorchain/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ func GetEthAddressFromStdout(stdout string) (string, error) {
func sendFunds(ctx context.Context, keyName string, toAddr string, amount ibc.WalletAmount, val0 *cosmos.ChainNode) {
memo := strings.Repeat("Hello World ", 10)
command := []string{"bank", "send", keyName, toAddr, fmt.Sprintf("%s%s", amount.Amount.String(), amount.Denom), "--note", memo}
_, _, _ = val0.Exec(ctx, val0.TxCommand(keyName, command...), val0.Chain.Config().Env)
_, _, err := val0.Exec(ctx, val0.TxCommand(keyName, command...), val0.Chain.Config().Env)
if err != nil {
fmt.Println("Gaia send funds err:", err)
}
}
2 changes: 1 addition & 1 deletion examples/thorchain/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func SetupGaia(t *testing.T, ctx context.Context, exoChain *ExoChain) *errgroup.
toUser := exoChain.genWallets[(j+1)%len(exoChain.genWallets)]
go sendFunds(ctx, genWallet.KeyName(), toUser.FormattedAddress(), amount, val0)
}
err := testutil.WaitForBlocks(ctx, 1, gaia)
err := testutil.WaitForBlocks(ctx, 2, gaia)
if err != nil {
return err
}
Expand Down

0 comments on commit 259d911

Please sign in to comment.