test: a new delete token meeting a deleting HEAD is admitted by the verdict

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-24 10:19:52 -08:00
1 parent 39ebfe2a81
commit aa53f203b3
1 file changed
+7
@@ -102,4 +102,11 @@ func TestDeleteAdmitsANeverStartedLine(t *testing.T) {
if err != nil || res.GetState() != lifecycle.ReservationAdmitted {
t.Fatalf("re-run after a commit that timed out: %+v %v; want admitted again", res, err)
}
// A NEW delete request (another token, so no held-token skip) meeting the
// deleting HEAD is decided by the verdict, and the verdict admits it: a
// HEAD past the fence is HolderDeleting, not a live holder.
res, err = lc.MarkVolumeDeleting(ctx, &control.MarkVolumeDeletingRequest{VolumeId: "v", Token: "del-second-request"})
if err != nil || res.GetState() != lifecycle.ReservationAdmitted {
t.Fatalf("a new delete request meeting a deleting HEAD: %+v %v; want admitted by the verdict", res, err)
}
}