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: add throw scenarios to simulate and dryRun #1246

Merged
merged 8 commits into from Sep 14, 2023

Conversation

danielbate
Copy link
Contributor

@danielbate danielbate commented Sep 12, 2023

The following forum post asks whether a wallet with no funding should be able to perform a read only call. Current specs detail that this is not possible, as per our own TS documentation.

This PR will add some test cases to the demo typegen application to directly replicate the above forum post, as well as additional expectations to fuel-gauge for both simulate and dryRun throw expectations. This is already explained in the documentation.

@danielbate danielbate self-assigned this Sep 12, 2023
@danielbate danielbate changed the title test: add throw scenarios to typegen demo tests test: add throw scenarios to simulate and dryRun Sep 12, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 12, 2023

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 84.41% 4954/5869
🟡 Branches 65.65% 751/1144
🟡 Functions 73.94% 834/1128
🟢 Lines 84.48% 4730/5599

Test suite run success

1205 tests passing in 208 suites.

Report generated by 🧪jest coverage report action from 4558de1

arboleya
arboleya previously approved these changes Sep 12, 2023
Copy link
Member

@arboleya arboleya left a comment

Choose a reason for hiding this comment

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

@danielbate You could have used the safeExec utility in these try/catch validations, but as you are not yet dealing with FuelErrors, these expectations will probably need to be aligned with:

cc @Torres-ssf

digorithm
digorithm previously approved these changes Sep 12, 2023
Copy link
Member

@digorithm digorithm left a comment

Choose a reason for hiding this comment

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

:shipit:

@danielbate danielbate dismissed stale reviews from digorithm and arboleya via d5d49d2 September 13, 2023 09:29
@danielbate
Copy link
Contributor Author

@arboleya good idea 👍🏻

@danielbate danielbate enabled auto-merge (squash) September 14, 2023 07:41
@danielbate danielbate merged commit f894d07 into master Sep 14, 2023
8 checks passed
@danielbate danielbate deleted the db/test/typegen-throw-scenarios branch September 14, 2023 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants