batch35: add and verify test wave T1

This commit is contained in:
Joseph Doherty
2026-03-01 02:37:07 -05:00
parent 8baa604dce
commit 9e4405c2a1
4 changed files with 146 additions and 0 deletions

View File

@@ -916,6 +916,7 @@ internal sealed class JetStreamCluster
var op = EntryOp.StreamMsgOp;
if (!string.IsNullOrEmpty(batchId))
{
body.Add(0); // reserve slot for batch op
var batchIdLength = Math.Min(batchId.Length, ushort.MaxValue);
body.AddRange(BitConverter.GetBytes((ushort)batchIdLength));
body.AddRange(Encoding.ASCII.GetBytes(batchId[..batchIdLength]));