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

Integration tests #83

Merged
merged 18 commits into from
Nov 15, 2023
Merged

Integration tests #83

merged 18 commits into from
Nov 15, 2023

Conversation

Pandelissym
Copy link
Contributor

@Pandelissym Pandelissym commented Nov 1, 2023

Added new test setup based on test-fluxAggregator-service-upgrade.js

  • Moved old unit tests over to this setup
    • market tests
    • minting tests
    • inventory tests
    • market metrics tests
    • governance tests
  • Added null-upgrade test
  • changed index.js contract method from start to prepare to allow contract upgrades
  • Added vStorage assertions to all test files

@Pandelissym Pandelissym changed the title Contract/upgradability tests Integration tests Nov 3, 2023
@Pandelissym Pandelissym marked this pull request as ready for review November 3, 2023 10:39
@Pandelissym Pandelissym closed this Nov 3, 2023
@Pandelissym Pandelissym reopened this Nov 3, 2023
/** @type {Context} */
const { publicFacet, governorFacets, contractAssets, purses, zoe } = context;

await E(governorFacets.creatorFacet).setFilters(['mintCharacterNfts']);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering how to revert this, maybe await E(governorFacets.creatorFacet).setFilters([]);?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I havent really looked into this but what you wrote makes sense. It should really affect the tests though cause each test file runs independent of the others.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah that makes sense, I'll check with Agoric about this

@Pandelissym Pandelissym merged commit 93f2f08 into develop Nov 15, 2023
1 check passed
@Pandelissym Pandelissym deleted the contract/upgradability-tests branch November 15, 2023 14:09
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.

2 participants