mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +00:00
refactor(runner): name the settle predicate for what it means
This commit is contained in:
1 parent
127234b58c
commit
0d588ff22f
1 file changed
+2
-2
@@ -407,9 +407,9 @@ func Run(ctx context.Context, options Options) (Summary, error) {
|
|||||||
// measured over (an action and a settle); looping straight back into it
|
// measured over (an action and a settle); looping straight back into it
|
||||||
// would compare two reads of a composing screen closer together still,
|
// would compare two reads of a composing screen closer together still,
|
||||||
// so the screen that most needs to settle is the one given least room.
|
// so the screen that most needs to settle is the one given least room.
|
||||||
applied := nextErr == nil && !applySkipped &&
|
mutated := nextErr == nil && !applySkipped &&
|
||||||
nextAction.Kind != verifier.ActionKindWait
|
nextAction.Kind != verifier.ActionKindWait
|
||||||
if held || applied {
|
if held || mutated {
|
||||||
idleCtx, idleCancel := context.WithTimeout(ctx, options.IdleTimeout)
|
idleCtx, idleCancel := context.WithTimeout(ctx, options.IdleTimeout)
|
||||||
idleErr := options.Driver.WaitForIdle(idleCtx, options.IdleTimeout)
|
idleErr := options.Driver.WaitForIdle(idleCtx, options.IdleTimeout)
|
||||||
if idleErr != nil && idleCtx.Err() == nil {
|
if idleErr != nil && idleCtx.Err() == nil {
|
||||||
|
|||||||
Reference in new issue
Block a user