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

Conversation

@nearmax
Copy link
Collaborator

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:

  • promise and;
  • Tests for #1268.
@nearmax nearmax changed the title [WIP] Runtime integration tests Runtime asynchrony tests Sep 10, 2019
@nearmax nearmax requested a review from evgenykuzyakov 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,

This comment has been minimized.

Copy link
@evgenykuzyakov

This comment has been minimized.

Copy link
@nearmax

nearmax Sep 11, 2019

Author Collaborator

I added method to the contact and applied better compilation options which changed its size which affects the storage usage.

@nearmax nearmax merged commit 041adcc into staging Sep 11, 2019
2 checks passed
2 checks passed
GitLab CI pipeline (branch) Pipeline completed on GitLab CI
Details
GitLab CI pipeline (pull request) Pipeline completed on GitLab CI
Details
@evgenykuzyakov evgenykuzyakov deleted the runtime_tests branch Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.