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

Dpn test fixes #1224

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

Conversation

corynthian
Copy link

Motivation

Most of the tests in DPN (which should probably be renamed to ol-framework) fail. This PR addresses some of the more trivial fixes but others warrant a more thorough review (e.g. DiemAccount changes).

Test Plan

cargo test --release in DPN root.

Related PRs

(not sure)

corynthian and others added 4 commits January 23, 2023 16:54
…#1212)

* Implementing ol-genesis recover option (create JSON file with account data from snapshot)

* Fix Move error when "Set the validator operator for each validator owner" in fn recovery_owners_operators

* Implementing ol-genesis "recover from JSON" option (create genesis blob from JSON file with accounts)

* Do not ignore mv files

* Diem-framework must be built in diem-move/diem-framework dir.

* Build artifacts

* Reverting 0L change which causes the panic "Err value: unable to parse AccoutAddress"

* Refactoring

* Update Readme.md
@0o-de-lally
Copy link
Collaborator

This is a great fix. Especially ones related to roles.

Could you rebase with the latest changes, I wonder if there was some drift in the version you were working from.

Then please use this test command:

NODE_ENV="test" cargo test -p diem-framework --test ol_transactional_tests

# with your changes now the  default should work:
NODE_ENV="test" cargo test -p diem-framework --test transactional_tests

https://github.com/0LNetworkCommunity/libra/blob/v6/ol/documentation/core-devs/_V6_test_cheatsheet.md#run-functional-move-tests-aka-transactional-tests

@corynthian
Copy link
Author

Getting errors running the test command you provided. Something to do with missing arg --round in task command.

@0o-de-lally
Copy link
Collaborator

Getting errors running the test command you provided. Something to do with missing arg --round in task command.

Are you running this commandsfrom the project root?
NODE_ENV="test" cargo test -p diem-framework --test ol_transactional_tests

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.

3 participants