Merge pull request #3707 from cli/fix-test-env
Fix test that was deleting local config folder
This commit is contained in:
commit
6b49b487e2
1 changed files with 1 additions and 0 deletions
|
|
@ -242,6 +242,7 @@ func Test_configFile_Write_toDisk(t *testing.T) {
|
|||
configDir := filepath.Join(t.TempDir(), ".config", "gh")
|
||||
os.Setenv(GH_CONFIG_DIR, configDir)
|
||||
defer os.Unsetenv(GH_CONFIG_DIR)
|
||||
defer stubMigrateConfigDir()()
|
||||
|
||||
cfg := NewFromString(`pager: less`)
|
||||
err := cfg.Write()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue