Skip to content

Commit

Permalink
Merge pull request cli#3707 from cli/fix-test-env
Browse files Browse the repository at this point in the history
Fix test that was deleting local config folder
  • Loading branch information
samcoe authored May 24, 2021
2 parents 045089c + 972d5ff commit 6b49b48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/config/config_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6b49b48

Please sign in to comment.