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:
commit
ce4f5c5970
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue