diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2025-06-29 16:25:30 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2025-06-29 16:25:30 -0700 |
| commit | aeb920895dc2d624d9c68d1cde3e85f7456bf04c (patch) | |
| tree | 1c41d79153183ab09347dfe6c073abdf41c577a9 /hotline/server.go | |
| parent | 123567e1eb72a001ba15f05003db811024dcf917 (diff) | |
Fix tests modifying test fixture files by using temporary directories
Previously, running tests would modify test/config/Users/guest.yaml and create
test/config/Users/test-user.yaml due to the automatic migration logic in
YAMLAccountManager. This caused git diff to show changes after running tests.
Solution:
- Modified TestNewYAMLAccountManager to use t.TempDir() for test isolation
- Added copyTestFiles helper to copy test fixtures to temporary directory
- Tests now run against copies, leaving original fixtures untouched
This ensures tests are properly isolated and don't have side effects on the
repository's test fixture files.
Diffstat (limited to 'hotline/server.go')
0 files changed, 0 insertions, 0 deletions