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

Replace cleos local abi file test with test harness version. #735

Merged

Conversation

jgiszczak
Copy link
Contributor

Replace the cleos local ABI file test with a version implemented using the test harness and actually execute it. The previous version was never executed by the test file.

@jgiszczak jgiszczak requested a review from spoonincode July 31, 2022 21:00
os.mkdir(data_dir)
walletMgr = WalletMgr(True)
walletMgr.launch()
node = Node('localhost', 8888, nodeId, cmd="./programs/nodeos/nodeos -e -p eosio --plugin eosio::trace_api_plugin --trace-no-abis --plugin eosio::producer_plugin --plugin eosio::producer_api_plugin --plugin eosio::chain_api_plugin --plugin eosio::chain_plugin --plugin eosio::http_plugin --access-control-allow-origin=* --http-validate-host=false " + "--data-dir " + data_dir + " --config-dir " + data_dir, walletMgr=walletMgr)
Copy link
Member

Choose a reason for hiding this comment

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

I think this may need --resource-monitor-not-shutdown-on-threshold-exceeded & its own config-dir

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added resource monitor flag. It has a specified config-dir.

Utils.Print("Cleanup nodeos data.")
shutil.rmtree(data_dir)

'''
Copy link
Member

Choose a reason for hiding this comment

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

any reason to comment this out instead of removing it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Forgot this was here after removing other commented code. Removed.

@jgiszczak jgiszczak merged commit 453829a into backport-cleos-local-abi-file Aug 5, 2022
@jgiszczak jgiszczak deleted the local-abi-file-test-enhancements branch August 5, 2022 18:42
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