Update tests to run against local network instead of redwood #57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is intended to aid with testing of #56 against a local regen network.
Since we are switching strategy to fix the original amino signing bug on regen ledger, we need to be able to run tests against a local network (from a local build)
The process for running these tests is as follows:
ty/fix_amino
branch (from fix(x/ecocredit): amino registration for ecocredit msgs (backport #1481) regen-ledger#1483)make build
./build/regen testnet start
(this will start a local testnet, and output a mnemonic with some testnetstake
tokens that can be used as a faucet)export FAUCET_MNEMONIC="the mnemonic output from the above command"
export NODE_URL="http://localhost:26657"
yarn test
At this point in time the only working test in
amino.spec.ts
is the one that funds the test accounts. All other tests are failing and it seems to be due to an issue that still persists in regen ledger (see regen-network/regen-ledger#1481 (comment)).Once the ledger issue has a working branch, it should be possible to run these amino tests and get some of them to pass. Some tests may still fail due to expectations that these tests have on application state of the network (e.g. marketplace denom allow list,
stake
vsuregon
staking denom, certain credit classes in existence).