1
0
forked from rosa/hakurei

internal/pkg: record cure faults

These are useful for troubleshooting. This change records them in a separate directory.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-13 17:58:18 +09:00
parent f63203cb0a
commit f2f1726190
3 changed files with 91 additions and 4 deletions

View File

@@ -492,6 +492,12 @@ func checkWithCache(t *testing.T, testCases []cacheTestCase) {
if err := os.RemoveAll(base.Append("status").String()); err != nil {
t.Fatal(err)
}
// destroy empty fault directory
if err := os.Remove(base.Append("fault").String()); err != nil {
t.Fatal(err)
}
want := tc.want.hash()
var checksum pkg.Checksum