-
Notifications
You must be signed in to change notification settings - Fork 279
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
fix: fix flaky unstable network tests #5013
fix: fix flaky unstable network tests #5013
Conversation
Ok, i can see that Probably i should apply new async genesis await mechanism for them as well. |
4192f5b
to
85207ce
Compare
85207ce
to
fe216de
Compare
Signed-off-by: Shanin Roman <[email protected]>
…ble tests Signed-off-by: Shanin Roman <[email protected]>
…s_committed_async Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
fe216de
to
67c62b6
Compare
iroha.transaction_ttl = Some(Duration::from_millis(u64::MAX)); | ||
iroha.transaction_status_timeout = Duration::from_millis(u64::MAX); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider compressing into a method, this repeats often
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it's wroth extracting into test_network
because this function is kinda specific for this particular tests...
@@ -96,23 +97,22 @@ fn unstable_network( | |||
quantity, | |||
AssetId::new(asset_definition_id.clone(), account_id.clone()), | |||
); | |||
iroha.submit(mint_asset).expect("Failed to create asset."); | |||
iroha | |||
.submit_blocking(mint_asset) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we replace all uses of submit
with submit_blocking
and get rid of polling? Or does it matter less for non-extra-functional tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should by default opt to submit_blocking
and use submit
in places where it's really required.
Closing for now in favor of #5087. |
Context
We have
unstable_network
tests which are constantly failing in the CI.Solution
Solutions consist of multiple parts: