CultNet tests: the commit-buffer pin waits for the last commit so a leaking buffer is seen

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Libby 2026-11-11 02:40:59 +00:00
commit e5f11c70b4

View file

@ -394,8 +394,10 @@ namespace GameCult.Networking.Tests
Stage(run.Source, ("a", a), ("b", b));
}
await Until(() => run.ReplicaItem("a")!.Sku == "s0");
Stage(run.Source, ("a", "last-a"), ("b", "last-b"));
await Until(() => run.Client.Fault != null || run.ReplicaItem("a")!.Sku == "last-a");
Assert.That(run.Client.Fault, Is.Null, "completed commits leave the buffer");
Assert.That(run.ReplicaItem("b")!.Sku, Is.EqualTo("last-b"));
}
[Test]