-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throttle session creation in nwo.Network (#1111)
There are many places in the integration tests where the network will repeatedly poll for some condition using Fabric command line tools in an `Eventually`. When this pattern is used, the commands are executed every 10ms until until the polling expires or the condition is satisfied. While this works, the polling does not have to be run as frequently. This change introduces a `SessionCreateInterval` field to the network that can be used to influence how quickly the same command can be re-issued. The default value of 1s will reduce the frequency of CLI execution when used in an Eventually loop without impacting the polling on sessions or other activities. Signed-off-by: Matthew Sykes <matthew.sykes@gmail.com>
- Loading branch information
Showing
1 changed file
with
62 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters