Merge pull request #10683 from cli/andyfeller/10590-alias-delete-test-safeguard

Implement safeguard for `gh alias delete` test, prevent wiping out GitHub CLI configuration
This commit is contained in:
Andy Feller 2025-03-26 14:08:48 -04:00 committed by GitHub
commit ce4f5c5970
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,6 +162,9 @@ func TestDeleteRun(t *testing.T) {
tt.opts.IO = ios
cfg := config.NewFromString(tt.config)
cfg.WriteFunc = func() error {
return nil
}
tt.opts.Config = func() (gh.Config, error) {
return cfg, nil
}