-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix attempt to fix flaky BundleSelectorPluginTest #9999
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,7 +76,8 @@ public void bundleIsNotMinedLastTxFails() throws IOException { | |
| "--plugin-bundle-test-enabled=true", | ||
| "--plugin-bundle-size=2", | ||
| "--plugin-bundle-failing-nonce=1", | ||
| "--plugin-block-txs-selection-max-time=75")); | ||
| "--plugin-block-txs-selection-max-time=75", | ||
| "--poa-block-txs-selection-max-time=95")); | ||
| cluster.start(node); | ||
|
|
||
| // since the last tx of the bundle fails, the first was initially selected, but eventually not | ||
|
|
@@ -95,7 +96,8 @@ public void bundleIsNotMinedMiddleTxFails() throws IOException { | |
| "--plugin-bundle-test-enabled=true", | ||
| "--plugin-bundle-size=3", | ||
| "--plugin-bundle-failing-nonce=1", | ||
| "--plugin-block-txs-selection-max-time=75")); | ||
| "--plugin-block-txs-selection-max-time=75", | ||
| "--poa-block-txs-selection-max-time=95")); | ||
|
Comment on lines
96
to
+100
|
||
| cluster.start(node); | ||
|
|
||
| // since the last tx of the bundle fails, the first was initially selected, but eventually not | ||
|
||
|
|
||
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.
The max-time values (75/95) are magic numbers introduced inline. To make future tuning and consistency easier (especially across multiple tests in this class), consider extracting these values into named constants (e.g.,
PLUGIN_SELECTION_MAX_TIME_MS,POA_SELECTION_MAX_TIME_MS) and reusing them.