From f06cdc4c4cab6b78b0db73b5877abed63c1d40be Mon Sep 17 00:00:00 2001 From: CrazyAmphibian <68451232+CrazyAmphibian@users.noreply.github.com> Date: Fri, 27 Dec 2024 11:19:50 +0000 Subject: [PATCH] fixes failing checks (#28) * Update PullingTest.cs * but wait, there's more! --- Content.IntegrationTests/Tests/Movement/PullingTest.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Content.IntegrationTests/Tests/Movement/PullingTest.cs b/Content.IntegrationTests/Tests/Movement/PullingTest.cs index d96c4ea0e56..a090df02957 100644 --- a/Content.IntegrationTests/Tests/Movement/PullingTest.cs +++ b/Content.IntegrationTests/Tests/Movement/PullingTest.cs @@ -21,7 +21,7 @@ public async Task PullTest() var pullable = Comp(Target); // Player is initially to the left of the target and not pulling anything - Assert.That(Delta(), Is.InRange(0.9f, 1.1f)); + Assert.That(Delta(), Is.InRange(0.8f, 1.1f)); Assert.That(puller.Pulling, Is.Null); Assert.That(pullable.Puller, Is.Null); Assert.That(pullable.BeingPulled, Is.False); @@ -39,7 +39,7 @@ public async Task PullTest() // Move to the left and check that the target moves with the player and is still being pulled. await Move(DirectionFlag.West, 1); - Assert.That(Delta(), Is.InRange(0.9f, 1.3f)); + Assert.That(Delta(), Is.InRange(0.8f, 1.3f)); Assert.That(puller.Pulling, Is.EqualTo(STarget)); Assert.That(pullable.Puller, Is.EqualTo(SPlayer)); Assert.That(pullable.BeingPulled, Is.True); @@ -48,7 +48,7 @@ public async Task PullTest() // Move in the other direction await Move(DirectionFlag.East, 2); - Assert.That(Delta(), Is.InRange(-1.3f, -0.9f)); + Assert.That(Delta(), Is.InRange(-1.3f, -0.8f)); Assert.That(puller.Pulling, Is.EqualTo(STarget)); Assert.That(pullable.Puller, Is.EqualTo(SPlayer)); Assert.That(pullable.BeingPulled, Is.True); @@ -58,7 +58,7 @@ public async Task PullTest() // Stop pulling await PressKey(ContentKeyFunctions.ReleasePulledObject); await RunTicks(5); - Assert.That(Delta(), Is.InRange(-1.3f, -0.9f)); + Assert.That(Delta(), Is.InRange(-1.3f, -0.8f)); Assert.That(puller.Pulling, Is.Null); Assert.That(pullable.Puller, Is.Null); Assert.That(pullable.BeingPulled, Is.False);