diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-13 16:16:37 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-13 16:16:37 +0900 |
| commit | f63203cb0a1ed9c1aa74d3608836e3899d8a12d5 (patch) | |
| tree | beb3b04f612a130c6bd03b1d96cdca838f994e3f /internal/pkg/pkg_test.go | |
| parent | 19555c767010769f0480aac51c9c470259bf5eb9 (diff) | |
internal/pkg: populate substitute status
These are not created when taking the fast path, but should be inherited from the alternative.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg_test.go')
| -rw-r--r-- | internal/pkg/pkg_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index 9d6757c7..96eda8ad 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -1059,8 +1059,14 @@ func TestCache(t *testing.T) { "_EmV5nsYZ2UWHgRmLDMU8i-rJWDx-kv5_1pFrzQI7vMMCM5mAXivO8UZtVfOqMR_", ), want, nil}, }) + } + if dents, err := os.ReadDir(base.Append("status").String()); err != nil { + t.Fatal(err) + } else if len(dents) > 0 { + t.Errorf("ReadDir: %v", dents) } + }, expectsFS{ ".": {Mode: fs.ModeDir | 0700}, |
