feat(batch15): complete group 2 msgblock/consumerfilestore

This commit is contained in:
Joseph Doherty
2026-02-28 17:10:41 -05:00
parent f36bc3111b
commit fd0170b22c
5 changed files with 361 additions and 9 deletions

View File

@@ -177,9 +177,8 @@ public sealed partial class JetStreamFileStoreTests
{
WithStore((fs, _) =>
{
fs.StoreMsg("ts", null, "one"u8.ToArray(), 0);
var cutoff = DateTime.UtcNow;
Thread.Sleep(20);
var (_, firstTs) = fs.StoreMsg("ts", null, "one"u8.ToArray(), 0);
var cutoff = DateTime.UnixEpoch.AddTicks((firstTs / 100) + 1);
fs.StoreMsg("ts", null, "two"u8.ToArray(), 0);
fs.GetSeqFromTime(cutoff).ShouldBeGreaterThanOrEqualTo(2UL);