Skip to content

Commit

Permalink
fixup: Update permissionless subnet test to use DefaultTimeout
Browse files Browse the repository at this point in the history
Otherwise flakes occur
  • Loading branch information
marun committed Aug 22, 2023
1 parent 7e81149 commit 9e6eb41
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/e2e/p/permissionless_subnets.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var _ = e2e.DescribePChain("[Permissionless Subnets]", func() {

var subnetID ids.ID
ginkgo.By("create a permissioned subnet", func() {
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultConfirmTxTimeout)
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultTimeout)
subnetTx, err := pWallet.IssueCreateSubnetTx(
owner,
common.WithContext(ctx),
Expand All @@ -76,7 +76,7 @@ var _ = e2e.DescribePChain("[Permissionless Subnets]", func() {

var subnetAssetID ids.ID
ginkgo.By("create a custom asset for the permissionless subnet", func() {
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultConfirmTxTimeout)
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultTimeout)
subnetAssetTx, err := xWallet.IssueCreateAssetTx(
"RnM",
"RNM",
Expand All @@ -97,7 +97,7 @@ var _ = e2e.DescribePChain("[Permissionless Subnets]", func() {
})

ginkgo.By(fmt.Sprintf("Send 100 MegaAvax of asset %s to the P-chain", subnetAssetID), func() {
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultConfirmTxTimeout)
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultTimeout)
_, err := xWallet.IssueExportTx(
constants.PlatformChainID,
[]*avax.TransferableOutput{
Expand All @@ -118,7 +118,7 @@ var _ = e2e.DescribePChain("[Permissionless Subnets]", func() {
})

ginkgo.By(fmt.Sprintf("Import the 100 MegaAvax of asset %s from the X-chain into the P-chain", subnetAssetID), func() {
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultConfirmTxTimeout)
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultTimeout)
_, err := pWallet.IssueImportTx(
xChainID,
owner,
Expand All @@ -129,7 +129,7 @@ var _ = e2e.DescribePChain("[Permissionless Subnets]", func() {
})

ginkgo.By("make subnet permissionless", func() {
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultConfirmTxTimeout)
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultTimeout)
_, err := pWallet.IssueTransformSubnetTx(
subnetID,
subnetAssetID,
Expand All @@ -153,7 +153,7 @@ var _ = e2e.DescribePChain("[Permissionless Subnets]", func() {

validatorStartTime := time.Now().Add(time.Minute)
ginkgo.By("add permissionless validator", func() {
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultConfirmTxTimeout)
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultTimeout)
_, err := pWallet.IssueAddPermissionlessValidatorTx(
&txs.SubnetValidator{
Validator: txs.Validator{
Expand All @@ -177,7 +177,7 @@ var _ = e2e.DescribePChain("[Permissionless Subnets]", func() {

delegatorStartTime := validatorStartTime
ginkgo.By("add permissionless delegator", func() {
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultConfirmTxTimeout)
ctx, cancel := context.WithTimeout(context.Background(), e2e.DefaultTimeout)
_, err := pWallet.IssueAddPermissionlessDelegatorTx(
&txs.SubnetValidator{
Validator: txs.Validator{
Expand Down

0 comments on commit 9e6eb41

Please sign in to comment.