[Test2] add 10s delay to USDC call #286
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
In order to test the scenario where exec plugin times out while building USDC batch, add a 10 second delay to each USDC API call.
At observation timeout threshold of 35 seconds, this caps USDC throughput to 3 messages per round. Since the API responses are cached, the plugin should eventually make enough calls to execute the root.
E.g if a root has 10 messages, it should take 4 rounds to execute the root.