Repository navigation
Commit 125f38a
test(background): match session-file path to record.go (TMPDIR + real user)
_session_file() hardcoded /tmp and derived the user from $USER, but
record.go's sessionFilePath() uses os.TempDir() ($TMPDIR) and
user.Current().Username. When $TMPDIR != /tmp or $USER is unset, the helper
looked for the wrong path and 5 background tests failed even though the
feature works. Mirror the implementation with $TMPDIR and a passwd lookup.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 09f817a commit 125f38a
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
| |||
0 commit comments