Skip to content

Commit

Permalink
fix nukies ipc test fail (#2957)
Browse files Browse the repository at this point in the history
Fix NukeOps Test (#1585)

Fix Nukes Ops Test

Co-authored-by: BombasterDS2 <shvalovdenis.workmail@gmail.com>
Co-authored-by: BombasterDS <deniskaporoshok@gmail.com>
  • Loading branch information
3 people authored Feb 11, 2025
1 parent 4356402 commit 4a1acbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Content.IntegrationTests/Tests/GameRules/NukeOpsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,15 @@ void CheckDummy(int i)
var totalSeconds = 30;
var totalTicks = (int) Math.Ceiling(totalSeconds / server.Timing.TickPeriod.TotalSeconds);
var increment = 5;
var resp = entMan.GetComponent<RespiratorComponent>(player);
var damage = entMan.GetComponent<DamageableComponent>(player);
for (var tick = 0; tick < totalTicks; tick += increment)
{
await pair.RunTicksSync(increment);
if (!entMan.HasComponent<SiliconComponent>(player)) // Goobstation
if (!entMan.HasComponent<SiliconComponent>(player)) // Goobstation - IPC
{
var resp = entMan.GetComponent<RespiratorComponent>(player);
Assert.That(resp.SuffocationCycles, Is.LessThanOrEqualTo(resp.SuffocationCycleThreshold));
}
Assert.That(damage.TotalDamage, Is.EqualTo(FixedPoint2.Zero));
}

Expand Down

0 comments on commit 4a1acbf

Please sign in to comment.