diff options
| author | ewy <ewy0@protonmail.com> | 2026-05-17 02:15:57 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-05-17 02:15:57 +0200 |
| commit | 45d1755e9f28853186613e97b034c2020f9d98e4 (patch) | |
| tree | ca9fa2d0f76efc3ee0f9cac8cf27d7d711961baf /cache | |
| parent | 5cfc8bd701037a215c62789916cda283a018d3fd (diff) | |
fix test which creates orphaned file
Diffstat (limited to 'cache')
| -rw-r--r-- | cache/cache_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cache/cache_test.go b/cache/cache_test.go index 7746be4..a58bf95 100644 --- a/cache/cache_test.go +++ b/cache/cache_test.go @@ -209,9 +209,9 @@ func TestMergeNilNormal(t *testing.T) { func TestInsert(t *testing.T) { d := t.TempDir() - st := TState(TSource("source", "target")) - paths.Set(paths.CacheDir, d) + paths.Set(paths.ContextsFile, filepath.Join(d, "contexts")) defer paths.Reset() + st := TState(TSource("source", "target")) err := MergeAndSave(st) assert.NoError(t, err) } |
