Commit 2a0818f
committed
test(config): set USERPROFILE in folder_cache test setup for Windows
os.UserHomeDir() reads HOME on Linux/macOS but USERPROFILE on Windows.
The existing t.Setenv("HOME", ...) had no effect on windows-latest, so
every test resolved cacheDir() to the runner's real %USERPROFILE%, where
state leaked across tests in the package and produced the failures
seen on PR #1007's windows-latest job.1 parent 98af8cb commit 2a0818f
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
0 commit comments