diff --git a/app_test.go b/app_test.go index 63e28c7..9ff6246 100644 --- a/app_test.go +++ b/app_test.go @@ -1669,7 +1669,7 @@ func TestHandleExitCoder_Default(t *testing.T) { } ctx := NewContext(app, fs, nil) - app.handleExitCoder(ctx, errors.New("Default Behavior Error")) + app.handleExitCoder(ctx, NewExitError("Default Behavior Error", 42)) output := fakeErrWriter.String() if !strings.Contains(output, "Default") { @@ -1689,7 +1689,7 @@ func TestHandleExitCoder_Custom(t *testing.T) { } ctx := NewContext(app, fs, nil) - app.handleExitCoder(ctx, errors.New("Default Behavior Error")) + app.handleExitCoder(ctx, NewExitError("Default Behavior Error", 42)) output := fakeErrWriter.String() if !strings.Contains(output, "Custom") {