Skip to content

Commit da91e02

Browse files
test - fix
Removing whitespace issue. Setting velocity to zero after moving and after waiting.
1 parent 12c8bf4 commit da91e02

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

com.unity.netcode.gameobjects/Tests/Runtime/NetworkTransform/NetworkTransformOwnershipTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ void LogOwnerRigidBody(int stage)
280280
ownerRigidbody.Move(valueSetByOwner, rotation);
281281
ownerRigidbody.linearVelocity = Vector3.zero;
282282
yield return s_DefaultWaitForTick;
283+
ownerRigidbody.linearVelocity = Vector3.zero;
283284
ownerInstance.transform.localScale = valueSetByOwner;
284285
}
285286
else

com.unity.netcode.gameobjects/Tests/Runtime/Transports/UnityTransportTestHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ internal class UnityTransportTestComponent : UnityTransport, INetworkUpdateSyste
9898

9999
public static void CleanUp()
100100
{
101-
for(int i = s_Instances.Count - 1; i >= 0; i--)
101+
for (int i = s_Instances.Count - 1; i >= 0; i--)
102102
{
103103
var instance = s_Instances[i];
104104
instance.Shutdown();

0 commit comments

Comments
 (0)