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:
parent
96b33160d9
commit
e5f11c70b4
1 changed files with 3 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue