bridge/e2e: increase timeouts for use with 19 validators
This commit is contained in:
parent
3449ca4d6e
commit
3282e9dbb9
|
@ -22,7 +22,7 @@ import (
|
|||
|
||||
// waitEthBalance waits for target account before to increase.
|
||||
func waitEthBalance(t *testing.T, ctx context.Context, token *erc20.Erc20, before *big.Int, target int64) {
|
||||
ctx, cancel := context.WithTimeout(ctx, 30*time.Second)
|
||||
ctx, cancel := context.WithTimeout(ctx, 60*time.Second)
|
||||
defer cancel()
|
||||
|
||||
err := wait.PollUntil(1*time.Second, func() (bool, error) {
|
||||
|
|
|
@ -45,7 +45,7 @@ func getSPLBalance(ctx context.Context, c *kubernetes.Clientset, hexAddr string)
|
|||
|
||||
func waitSPLBalance(t *testing.T, ctx context.Context, c *kubernetes.Clientset, hexAddr string, before *big.Int, target int64) {
|
||||
// Wait for target account balance to increase.
|
||||
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
|
||||
ctx, cancel := context.WithTimeout(ctx, 30*time.Second)
|
||||
defer cancel()
|
||||
err := wait.PollUntil(1*time.Second, func() (bool, error) {
|
||||
after, err := getSPLBalance(ctx, c, hexAddr)
|
||||
|
|
|
@ -193,7 +193,7 @@ func terraQuery(ctx context.Context, contract string, query string) (string, err
|
|||
|
||||
// waitTerraAsset waits for asset contract to be deployed on terra
|
||||
func waitTerraAsset(t *testing.T, ctx context.Context, contract string, chain uint8, asset []byte) (string, error) {
|
||||
ctx, cancel := context.WithTimeout(ctx, 30*time.Second)
|
||||
ctx, cancel := context.WithTimeout(ctx, 60*time.Second)
|
||||
defer cancel()
|
||||
|
||||
assetAddress := ""
|
||||
|
@ -218,7 +218,7 @@ func waitTerraAsset(t *testing.T, ctx context.Context, contract string, chain ui
|
|||
|
||||
// waitTerraBalance waits for target account before to increase.
|
||||
func waitTerraBalance(t *testing.T, ctx context.Context, token string, before *big.Int, target int64) {
|
||||
ctx, cancel := context.WithTimeout(ctx, 30*time.Second)
|
||||
ctx, cancel := context.WithTimeout(ctx, 60*time.Second)
|
||||
defer cancel()
|
||||
|
||||
err := wait.PollUntil(1*time.Second, func() (bool, error) {
|
||||
|
|
Loading…
Reference in New Issue