Preserve cancellation in aggregate smoke tests

This commit is contained in:
2026-11-07 15:36:23 +00:00
parent a806a9a62e
commit b66d265032
4 changed files with 98 additions and 7 deletions

View File

@@ -173,6 +173,9 @@ func runSmokeAggregate[I, S any](invocation commandkit.Invocation, suite Suite[I
}
}
if err := promptKitContextError(invocation.Context); err != nil {
if len(results) < len(kinds) && !errors.Is(errors.Join(operationErrors...), err) {
operationErrors = append(operationErrors, err)
}
break
}
}