-
Notifications
You must be signed in to change notification settings - Fork 650
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(test) - fix flaky test #11508
fix(test) - fix flaky test #11508
Conversation
@@ -203,7 +203,7 @@ impl CongestionControlConfig { | |||
allowed_shard_outgoing_gas: max_value, | |||
max_tx_gas: max_value, | |||
min_tx_gas: max_value, | |||
reject_tx_congestion_threshold: 1.0, | |||
reject_tx_congestion_threshold: 2.0, |
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.
interesting fix 😆
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11508 +/- ##
=======================================
Coverage 71.31% 71.31%
=======================================
Files 787 787
Lines 159389 159391 +2
Branches 159389 159391 +2
=======================================
+ Hits 113661 113671 +10
+ Misses 40789 40782 -7
+ Partials 4939 4938 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
it turns out that the config wasn't actually passed in to the runtime and I was unlucky when testing it.. |
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.
Yeah makes sense. And it looks like the test is no longer flaky now.
The
test_in_memory_trie_node_consistency
was failing occasionally because the config with disabled congestion control wasn't properly passed into the nightshade runtime. Also setting the threshold for rejecting transactions from 1 to 2 because otherwise some could still get rejected under full congestion.