Reconcile reporting tests and boundaries
This commit is contained in:
@@ -1020,7 +1020,7 @@ func TestAliasHelpTargetsGroupsAndDiscoveryViews(t *testing.T) {
|
||||
|
||||
var diagnostics bytes.Buffer
|
||||
outcome := app.Execute(context.Background(), []string{"list"}, Streams{Out: io.Discard, Err: &diagnostics})
|
||||
if outcome.Kind != OutcomeUsage || !strings.Contains(outcome.Cause.Error(), "--help") {
|
||||
if outcome.Kind != OutcomeUsage || !strings.Contains(outcome.Explanation.Message, "--help") {
|
||||
t.Fatalf("bare discovery prefix = %#v, diagnostics %q; want usage pointing to list --help", outcome, diagnostics.String())
|
||||
}
|
||||
if inputBuilds != 0 || promptRuns != 0 {
|
||||
|
||||
Reference in New Issue
Block a user