mount: model the refused async flush as a replaced file in recovery tests (#12628)

A peer's chunk append now merges into the flush, so these tests no longer
saw the refusal they exercise. A replaced file is still refused.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 authored and GitHub committed 2026-11-13 13:50:51 -08:00
1 parent fdd3a692d3
commit 68b6a2ed08
1 file changed
+3 -1
+3 -1
View File
@@ -40,7 +40,9 @@ func committedContentHandle(t *testing.T, peer bool) (*WFS, *FileHandle, *commit
base.CommitTsNs = 100
current := proto.Clone(base).(*filer_pb.Entry)
if peer {
current.Chunks = append(current.Chunks, flushConditionEntry(1, 2).Chunks[1])
// A peer replaced the file: the flush cannot merge into it.
current = flushConditionEntry(4)
current.Attributes.Inode = 99
current.CommitTsNs = 101
}
s := &committedContentFiler{contentFlushConditionFiler: contentFlushConditionFiler{entry: current}}