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

Fix failing tests #30

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

Henry-E
Copy link

@Henry-E Henry-E commented Nov 27, 2024

Tests should pass 100% of the time now.

Changes in file order

  • Add a simple github actions file that runs the tests everything to a PR is made or commit push.
    • Maybe there's a more restrictive version of this that people prefer using.
  • Use a locally stored ./admin.json keypair so that tests will automatically run.
  • Obviously anyone deploying should change this.
  • Uploading locally stored account files to the validator instead of fetching them from mainnet which is unreliable.
  • For swap tests to pass there needs to be a 1 block delay between initing an amm and trying to swap.
  • The sort function used to sort token accounts outputs incorrect ordering when the base58 lengths are different, this fixes that by compare the byte arrays instead.

No more failing tests! Also very annoying to debug this because of how anchor is not showing a proper stack trace when a program call fails. Not sure how to fix this / why that is.

@Henry-E Henry-E changed the title Experimental branch Fix failing tests Nov 27, 2024
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.

1 participant