local: make out of space errors fatal during multi-thread transfers

This commit is contained in:
ferrumclaudepilgrim
2026-09-08 16:35:36 +01:00
committed by Nick Craig-Wood
parent 7bfc9ca648
commit 2cec6065d3
6 changed files with 199 additions and 36 deletions
+8 -6
View File
@@ -674,13 +674,15 @@ func TestCacheKickCleaner(t *testing.T) {
// Only the cleaner clears the out of space condition, so with no cleaner
// running a KickCleaner which waited for it would never return.
t.Run("CleanerDisabled", func(t *testing.T) {
opt := vfscommon.Opt
opt.CachePollInterval = 0
_, c := newTestCacheOpt(t, opt)
for _, interval := range []fs.Duration{0, -1} {
t.Run("CleanerDisabled/"+interval.String(), func(t *testing.T) {
opt := vfscommon.Opt
opt.CachePollInterval = interval
_, c := newTestCacheOpt(t, opt)
assert.True(t, kickCleaner(t, c), "KickCleaner did not return with the cleaner disabled")
})
}
assert.True(t, kickCleaner(t, c), "KickCleaner did not return with the cleaner disabled")
})
}
func TestCacheSetModTime(t *testing.T) {