Fix test threading (#31669)

This commit is contained in:
metalgearsloth
2024-08-31 12:35:30 +10:00
committed by GitHub
parent 9183c50d81
commit 849d3d9f5c
5 changed files with 32 additions and 16 deletions

View File

@@ -34,7 +34,11 @@ public sealed class BuckleDragTest : InteractionTest
Assert.That(pullable.BeingPulled, Is.False);
// Strap the human to the chair
Assert.That(Server.System<SharedBuckleSystem>().TryBuckle(sUrist, SPlayer, STarget.Value));
await Server.WaitAssertion(() =>
{
Assert.That(Server.System<SharedBuckleSystem>().TryBuckle(sUrist, SPlayer, STarget.Value));
});
await RunTicks(5);
Assert.That(buckle.Buckled, Is.True);
Assert.That(buckle.BuckledTo, Is.EqualTo(STarget));