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

Faucet Polling in E2E Tests #164

Merged
merged 4 commits into from
Sep 11, 2024
Merged

Faucet Polling in E2E Tests #164

merged 4 commits into from
Sep 11, 2024

Conversation

usmanmani1122
Copy link
Contributor

@usmanmani1122 usmanmani1122 commented Aug 29, 2024

Description

Updated test to poll for transaction completion
Successful run on Emerynet:
https://github.com/Agoric/dapp-psm/actions/runs/10792624611/job/29932687814

@usmanmani1122 usmanmani1122 self-assigned this Aug 29, 2024
Copy link

cloudflare-workers-and-pages bot commented Aug 29, 2024

Deploying dapp-psm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 266b099
Status: ✅  Deploy successful!
Preview URL: https://a846ad2a.dapp-psm.pages.dev
Branch Preview URL: https://usman-faucet-polling.dapp-psm.pages.dev

View logs

Copy link

github-actions bot commented Aug 29, 2024

Cloudflare deployment logs are available here

@usmanmani1122 usmanmani1122 marked this pull request as ready for review September 10, 2024 12:49
@usmanmani1122 usmanmani1122 changed the title Faucet Polling Faucet Polling in E2E Tests Sep 10, 2024
cy.request({
method: 'POST',
url: networkPhrases.faucetUrl,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: i think its safe to remove faucetUrl from networkPhrases now

const { transactionStatus } = resp.body;
if (transactionStatus === TRANSACTION_STATUS.NOT_FOUND)
// eslint-disable-next-line cypress/no-unnecessary-waiting
return cy.wait(2000).then(() => getStatus(txHash));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have in general timeout limit on our tests? Thinking of a case when we are getting consistent NOT_FOUND for some unexpected reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes there is a maximum timeout limit of 30 seconds

Copy link

@Muneeb147 Muneeb147 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@usmanmani1122 usmanmani1122 merged commit 723c2aa into main Sep 11, 2024
4 of 5 checks passed
@usmanmani1122 usmanmani1122 deleted the usman/faucet-polling branch September 11, 2024 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants