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

Runtime asynchrony tests #1283

Merged
merged 12 commits into from Sep 11, 2019
Merged

Runtime asynchrony tests #1283

merged 12 commits into from Sep 11, 2019

Conversation

MaksymZavershynskyi
Copy link
Contributor

@MaksymZavershynskyi MaksymZavershynskyi commented Sep 10, 2019

Adresses #1293 . Implements tests that run multiple runtimes as if they were in different shards and routes the receipts between them. Asserts that cross-contract calls produce the correct sequence of receipts (including callbacks and refunds). The asynchronous code also uses Mutex and Condvar making if compatible with Loom.

Missing the following:

@MaksymZavershynskyi MaksymZavershynskyi changed the title [WIP] Runtime integration tests Runtime asynchrony tests Sep 10, 2019
@@ -224,7 +224,7 @@ pub fn test_send_money(node: impl Node) {
staked: TESTING_INIT_STAKE,
code_hash: default_code_hash().into(),
storage_paid_at: 0,
storage_usage: 254500,
storage_usage: 86112,
Copy link
Collaborator

Choose a reason for hiding this comment

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

?

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 added method to the contact and applied better compilation options which changed its size which affects the storage usage.

@MaksymZavershynskyi MaksymZavershynskyi merged commit 041adcc into staging Sep 11, 2019
@evgenykuzyakov evgenykuzyakov deleted the runtime_tests branch September 12, 2019 17:49
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.

None yet

2 participants